%MYFILES% problem...

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

Post by Dude » Sat Nov 25, 2006 1:42 am


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?


Edited By Dude on 1164419003

Oleg Tsheglov
Site Admin
Posts: 309
Joined: Fri Feb 13, 2004 5:55 pm

Post by Oleg Tsheglov » Tue Nov 28, 2006 1:22 am

1. What compiler version you have?
2. Does %MYFILES% path contains a doublw quotes?

Posts: 5
Joined: Fri Jun 16, 2006 1:09 pm

Post by Wayne.o » Tue Dec 05, 2006 11:24 pm

Hi Oleg -

I think I have found the problem. After recompiling my scripts with the new 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 Examples of my particular switches would be: batch.exe /o option /f name. I then recompiled all of the batch jobs with version and all now work.

I hope this helps,


Post Reply