%MYFILES% problem...

Convert your BATch files into EXEcutable format in one click.
Post Reply
Dude
Posts: 1
Joined: Sat Nov 25, 2006 1:37 am

Post by Dude »

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
Oleg Tsheglov
Site Admin
Posts: 307
Joined: Fri Feb 13, 2004 5:55 pm
Contact:

Post by Oleg Tsheglov »

1. What compiler version you have?
2. Does %MYFILES% path contains a doublw quotes?
Wayne.o
Posts: 5
Joined: Fri Jun 16, 2006 1:09 pm

Post by Wayne.o »

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
Post Reply