WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Dont create c:\temp\logfile
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1099496542

Message started by alfon on Nov 3rd, 2004 at 10:42pm

Title: Dont create c:\temp\logfile
Post by alfon on Nov 3rd, 2004 at 10:42pm
hello:

this is my first day using WatchDirectory and I'm trying to execute a BAT file called WDReportEvents.bat. but it doesn't create the file, can you help me with this? ???

Thanks a lot!!!

Title: Re: Dont create c:\temp\logfile
Post by Gert on Nov 3rd, 2004 at 11:52pm
Hello Alfon,

I just tested it again here and it works fine.
Please make sure to remove the first line from the .bat file as instructed in the comments.

Also, if you didn't change those options, the actual file created will be named c:\temp\logfile_20041103.CSV

Gert

Title: Re: Dont create c:\temp\logfile
Post by alfon on Nov 4th, 2004 at 12:32am
:'( i tried what u told me, but it still doesnt work.  perhaps its because its a demo....??  :'(

Title: Re: Dont create c:\temp\logfile
Post by Gert on Nov 4th, 2004 at 12:37am
No, it should work...

Can you send me the .bat file you use? Please ZIP it, otherwise it will be blocked by our server.

Also, on watchDirectoryStart (the program to configure watchDirectory), press CTRL+F5 to copy all info to the windows clipboard. Then paste (CTRL+V) into the email message. Send it to support@ gdps.dk

Title: Re: Dont create c:\temp\logfile
Post by Gert on Nov 4th, 2004 at 11:53am

Quote:
Please make sure to remove the first line from the .bat file as instructed in the comments.

This turned out to be not 100% correct. All example .bat files start with the following lines of code:
[code]MBox.exe "Please change the settings of this bat-file" "before running it!" -caption "Sample bat-file" -icon ! -type ok
goto :EOF
@echo off
[/code]
This will cause a messagebox ('popup' window) to inform you that you should edit the .bat file before you use it. All .bat files have some specific settings that need to be changed to function properly. The second line above (goto :EOF) causes the .bat file to quit.

So, in my original reply, I should have told to remove the first 2 lines from the .bat file.

Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.