i want to create a batch file, in which i can pass in a parameter which is a file name.
for eg filename like abc_20090427.txt
once this parameter is passed i would like to read it inside the batch file and check it if the file is abc_20090427.txt.gz i want to delete it else exit. the batch file by doing nothing.
Please note abc_*.txt.gz is constant but the date can change every time i execute it.
Thanks in advance
this is what i have now but i dont know what is the like operator in dos.
SET sname= %1
echo This is passed %sname%
if %sname% == abc*.txt.gz (
echo here i would like to exit this bactch file