ramses Guest
|
 |
« on: June 16, 2004, 07:28:56 PM » |
|
Hi all,
I am going to run a batch program on every user PC:
The program syntax is as below:
@ECHO OFF NET USE Q: \\AIRWALK\V NTVIRUS /USER:NTVIRUS /PERSISTENT:NO CD\ c: cd "\Documents and Settings\%username%\Desktop" mkdir NewVirusUpdate copy q:\*.exe c:\"Documents and Settings\%username%\Desktop\NewVirusUpdate" CD\ C: CD "\Documents and Settings\%username%\Desktop\NewVirusUpdate" *i32.exe /Q REM The real name is 20040615-019-i32.exe *x86.exe /Q REM The real name is 20040615-019-i32.exe NET USE q: /delete /y
Problem: 1. The file is daily updated. For the next update the filename will be 20040616-019-i32.exe and 20040616-019.x86.exe. 2. I cannot run the program since DOS cannot recognize *i32.exe and *.x86.exe. as it internal/external command. 3. I have to type the program name exactly.
How would I use the wild card to run such program automatically since the name of the program is daily updated?
|