| View previous topic :: View next topic |
| Author |
Message |
Dude
Joined: 25 Nov 2006 Posts: 1
|
Posted: Sat Nov 25, 2006 1:42 am Post subject: |
|
|
hey
I have a .bat witch is using a script file (waRmZip.wsf) to delete files older than a certain number of days in a folder
I've added it to my .exe and here is the code i've put in my bat:
%MYFILES%\waRmZip.wsf /r "D:\Sauvegarde_1\" /da:5 /df /q
I compiled it and it doesn't seem to work...
Anyone can tell me where I'm wrong?
Thx
Edited By Dude on 1164419003 |
|
| Back to top |
|
 |
|
|
Oleg Tsheglov Site Admin
Joined: 13 Feb 2004 Posts: 309
|
Posted: Tue Nov 28, 2006 1:22 am Post subject: |
|
|
1. What compiler version you have?
2. Does %MYFILES% path contains a doublw quotes? |
|
| Back to top |
|
 |
Wayne.o
Joined: 16 Jun 2006 Posts: 5
|
Posted: Tue Dec 05, 2006 11:24 pm Post subject: |
|
|
Hi Oleg -
I think I have found the problem. After recompiling my scripts with the new 2.1.5.0 version, many of my scripts didn't work correctly. After reviewing my job logs, I was able to at determine that command line switches are not passed to the batch jobs. In my case, I use Windows Scheduler, and could clearly see the command line switches that my logs indicated were missing in the Scheduler's command line; which I didn't edit or change since version 2.0.8.5. Examples of my particular switches would be: batch.exe /o option /f name. I then recompiled all of the batch jobs with version 2.0.8.5 and all now work.
I hope this helps,
Wayne |
|
| Back to top |
|
 |
|