|
Answer» I tried this on some of the computers at work today without much success!
I wrote a .bat that the last line is:
Code: [Select]shutdown -s -c "Please varify all of the data. The COMPUTER will shutdown in 30 seconds."
It only worked on two out of 18 XP MACHINES and zero of our 2000 machines. I found that if I copy the command to the desktop, it works!
But since it's written at the end of a long list of commands, this just doesn't work for me! I guess I can have my origional .bat copy a shutdown.bat to the desktop, call it, then delete it. But what is the nature of the shutdown command? Does it call a .dll? Could I copy that .dll to my FLASH drive and call it there? Will that work for XP and 2000 machines alike?Maybe the 2ks need a reg patch.......with what you have got.........save the files to a a hardrive on a server.Well, the problem is the computers that I run this on change weekly so there is no CENTRAL server. It has to be run on a flash drive.
Thanks for the reply though!try another bat script
http://www.robvanderwoude.com/index.htmlCould it be as simple as changing it to...
%sysroot%\system32\shutdown.exe -s -c "Please varify all of the data. The computer will shutdown in 30 seconds."
?I don't think so,
That path will be in the path variable itself.
Does a error come, or it simply ignores that command.There is no error, it just keeps calling it over and over until I close the WINDOW or just doesn't exicute it. I worked arround the problem with this:
Code: [Select]copy \Programs\DataCollection\Shutdown.bat C:\ call c:\Shutdown.bat del c:\Shutdown.bat
I wonder if I copied %sysroot%\system32\shutdown.exe to my thumb drive, could I get it to work on a 2K machine . . .
I'll try and let you know!It doesn't run on either XP or 2K!Let me repeat.
It works in XP. In 2000 it doesn't work whether its at the end of file or a simple line written somewhere.
But if you copy that file to desktop it works. With that complex file also?
Correct me if i am wrong.
|