Page 1 of 1
find file in drive then get its path
Posted: 13 Oct 2021 01:01
by starxultra
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
Re: find file in drive then get its path
Posted: 13 Oct 2021 03:10
by aGerman
starxultra wrote: ↑13 Oct 2021 01:01
I am building antivirus in bat
Don't!
starxultra wrote: ↑13 Oct 2021 01:01
want to check if a certain file exists in the system
Have a look at this thread:
viewtopic.php?f=3&t=10147
Steffen
Re: find file in drive then get its path
Posted: 13 Oct 2021 07:38
by Squashman
You could start by writing actual batch file code instead of pseudo code. Not a single line of your code would execute correctly.
Re: find file in drive then get its path
Posted: 15 Oct 2021 15:11
by Hackoo
Hi
Take a look at this thread that can give you an idea for making your own code in the futur !
Batch Antivirus