I need to determine if a file exists in a series of directories on a remote drive, and i only have a partial file name!
l am terrible with batch files, been like 10 years since i wrote one, but here is what i need
given a list of directories i need to determine if a file with a specified date in the name exists, and where it doesn't exist create some kind of error report, basic attempt is below, not getting very far with it tho...
if there is a way for a batch file to mail a file or message that would be awesome too
any help is appreciated
set compDate=%date:~6,4%-%date:~3,2%-%date:~0,2%kjhjkh >> completed.txt
if dir %var% %compDate% goto 20
echo Found - File Name is : %var% - %dated% > completed.txt
dir %var% >> completed.txt
echo No File found For %compDate% >> notexists.txt