Search found 1 match

by starxultra
13 Oct 2021 01:01
Forum: DOS Batch Forum
Topic: find file in drive then get its path
Replies: 3
Views: 5912

find file in drive then get its path

Heloo, I am building antivirus in bat and want to check if a certain file exists in the system

I want something like this

Code: Select all

results = find("myfile.exe")
if %results% not empty
path = "myfile.exe".path