Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

%MYFILES% problem...

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
Dude



Joined: 25 Nov 2006
Posts: 1

PostPosted: Sat Nov 25, 2006 1:42 am    Post subject: Reply with quote

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

PostPosted: Tue Nov 28, 2006 1:22 am    Post subject: Reply with quote

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

PostPosted: Tue Dec 05, 2006 11:24 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group