In Windows batch scripts, usually we can find if exist xxx or if not exist xxx.
Does this search all files in the computer, or any specific folder or path, for the xxx specified?
If you have not specified a folder, it will look in current folder. But you can work use wildcards. Example:
if exist *.png echo There are images here
will output the text if in the current folder there are any files with the extension .png
or you can specify a full path, for example
if exist d:\temp\*.png echo There are images there
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With