You are here

Script won't work on shut down

5 posts / 0 new
Last post
XINA
Offline
Last seen: 14 years 10 months ago
Joined: 2010-01-11 05:59
Script won't work on shut down

Hello,
I created a sync job.
Then I created a batchfile. The batchfile works fine.
But if the batchfile starts on windowsXP log off script nothing happens.
This is the batch file:

Rem batchfile
echo Start %date% %time% >>C:\Temp\logTouCan.txt
C:\Programme\Toucan\Toucan jobname
echo End %date% %time% >>C:\Temp\logTouCan.txt
Rem end batchfile

This is what I see in my logfile logTouCan.txt:
Start 11.01.2010 11:52:25,02
End 11.01.2010 11:52:25,27

I wonder why Toucan runs only for one second.
Does anybody else has the same problem with Toucan and log off script?

MaienM
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-18 04:35
My guess would be that, since

My guess would be that, since you are logging off, toucan gets closed by windows. While logging off windows first closes all programs, thus also stopping toucan. Simply said, I don't think that starting a program while logging out is going to work. I'm not 100% certain about this though, so maybe someone else knows of a way to do this.

Behold, the DutchLander has arrived.
Grammatical errors are copyrighted.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
That

would be my guess too, does it work if you run it separately?

XINA
Offline
Last seen: 14 years 10 months ago
Joined: 2010-01-11 05:59
Yes, it works if I run it

Yes, it works if I run it separately.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I

am afraid I am not sure what to suggest, how do you get the batch file to run?

Log in or register to post comments