Execute a file with a wildcard name in a DOS batch file?
Posted on 2006-03-21
Hope I phrased that question correctly... I have a file I execute weekly to update several computers. The file name is always "sdatxxx.exe", where the xxxx is a number. The number may be more than 4 digits in the future.
I would like to make a batch file I can execute to save several steps. I can make all the commands, except for the file name. How can I specify the file name using wildcards? I tried "sdat****.exe", and that didn't cut it. That's about the extent of my batch wildcard knowledge! :-)
So can I use a batch file to execute a file, when the file name changes regularly? If it makes a difference, I will be executing this file off a CD, and the file will be the only file on the CD.