| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 11106 | 2001-09-01 04:49:00 | Rebooting PC Automatically | Guest (0) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 17946 | 2001-09-01 04:49:00 | On a Win95 PC I'm running a schedule that takes a photo once every 30 minutes, puts the date and time as the filename and FTP's it to a server located in another town. The schedule also deletes the photo from the PC's hard drive (to save space- only 2 gig in size). To do some of this I have a couple of batch files within the schedule. Because of these batch files the PC is losing some of its memory as it opens a DOS box every time a batch file is run. The only way I know to restore this lost memory is to restart the PC. Is there a program command line that I can put into the scheduler to run, say, once a fortnight, to restart the computer. I manually do this using pcAnywhere from a remote computer at present. Hope you can help. |
Guest (0) | ||
| 17947 | 2001-09-01 05:46:00 | You may be able to do it in windows scripting (the thing all the outlook worms run). Or another scripting language eg perl, or python. There is a windows script command to restart the computer which you should be able to find (its commonly used in worms). If you still want to use the bat file there are programs like: www.dwgsoftware.com Or course you could try using linux (or possibly NT) and you wont need to restart at all. |
Guest (0) | ||
| 17948 | 2001-09-01 06:25:00 | hi, try this: rundll32.exe shell32.dll,SHExitWindowsEx 2 |
Guest (0) | ||
| 17949 | 2001-09-02 02:14:00 | Here's the complete set: rundll32.exe shell32.dll,SHExitWindowsEx 0 (log off current user) rundll32.exe shell32.dll,SHExitWindowsEx 1 (shutdown) rundll32.exe shell32.dll,SHExitWindowsEx 2 (reboot) rundll32.exe shell32.dll,SHExitWindowsEx 4 (force shutdown) rundll32.exe shell32.dll,SHExitWindowsEx 8 (power off) You can 'add them up' and combine the values, like so: rundll32.exe shell32.dll,SHExitWindowsEx 6 (force shutdown and reboot) 'Force shutdown' is of course dangerous, as running programs could lose data. -- Juha |
Guest (0) | ||
| 1 | |||||