Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
IF Exists with wildcards?
Name: jaydenjamar Date: May 11, 2007 at 12:27:07 Pacific OS: XP/2003/2000 CPU/Ram: Intel Core Duo 2.4 Product: Home Made
Comment:
I have been writing a batch script that needs to check for the existence of a file and do some action, however the filenames changes daily. I was going use the IF Exist command with *.txt or whatver the extension is, but IF Exist does not support wildcards. Anyone know a way to use IF Exist with wildcards or some other mehtod?
Summary: Hi, I'm trying to do a batch file where need to do a For %%A in (1, 2, 3, 4, 5, 6) DO( if exisit "filename1" set var1= -par1 "filename" excecute programe with parameter.exe) but i couldn't seems to be...
Summary: I would like to have a batch file that looks for a file on a network drive, if it doesn't find it, it waits for 10 seconds or so, & looks for it again. I've seen batch files like this that use IF EXIS...