captainamer71
May 19 2005, 06:22 AM
Ok I have a bat file that runs at startup it copies all the files from my HD to my ramdrive.
Then I have a bat file that I want to run at shutdown. that does copies all the files from my ramdrive to the hd and shuts down
My only problem is that I have to my had shut down one of the programs that is running from the ram drive so that it can copy all the files back to the hd.
Is there a command that I can use that will shut the program down with out me having to do it manually?
Thanks
MDGx
May 20 2005, 05:17 AM
NirCmd example of use:
nircmd.exe killprocess iexplore.exe
NirCmd [free GPL]:
http://www.nirsoft.net/utils/nircmd.html
oftentired
May 20 2005, 09:16 AM
You may want to consider installing PrcView. With that program comes a very small DOS program called PV.EXE which is a DOS based task manager which you can call from a batch file to shut down a process. The text file PV.TXT that comes with it explains all the available switches and usage. Very handy really.
PrcView