Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
starxultra
- Posts: 1
- Joined: 13 Oct 2021 00:52
#1
Post
by starxultra » 13 Oct 2021 01:01
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
-
Squashman
- Expert
- Posts: 4486
- Joined: 23 Dec 2011 13:59
#3
Post
by Squashman » 13 Oct 2021 07:38
You could start by writing actual batch file code instead of pseudo code. Not a single line of your code would execute correctly.
-
Hackoo
- Posts: 103
- Joined: 15 Apr 2014 17:59
#4
Post
by Hackoo » 15 Oct 2021 15:11
Hi
Take a look at this thread that can give you an idea for making your own code in the futur !
Batch Antivirus