I have a problem whic I'm sure should be easy to clear up. I have written a very simple batch file to launch a program at login. When I test the batch file locally on the machine it runs perfect, runs once, does what it is supposed to do and finishes, simple... so I thought. I then copied the batch file to a network share to make it available to all users. When I run the batch file from a network share it just keeps looping. The dos box opens as it should and the command just keeps looping, never stopping. The command being issued just updates the schedule on a poweroff program we use to shutdown all client machines every evening. Checkout http://users.telenet.be/jbosman/poweroff/poweroff.htm
Has anyone ever seen this happen before with a batch file?? Any help would be greatly appreciated.
poweroff -warn -warntime 180 -msg "WORKING NOW" -playsound -soundfile "c:\windows\media\ringin.wav" -force -scheduled -time 10:08 -days m,t,w,th,f -save_svc_set