Views |
||||||||||||||
How do I add pre and post processing on NT?
type: savepnpc; precmd: "c:\\win32app\\nsr\\res\pre.bat"; pstcmd: "c:\\win32app\\nsr\\res\pst.bat"; This file is used on a NT-server, notice \\ in the command line. In the pre/pst.bat files the following is necessary to run the commands succesfully: All variables which come with the 'set' command. cmd /c "net stop service name" echo + > filename del filename The last 2 lines are needed to give the bat file a 'exit 0' status. If NO 'exit 0' status comes from the batfile then NO backup will be made. This is due to the fact that some NT-services finish succesfully with a 'exit 1' status and NetWorker checks for 'exit 0'. I need information on Windows Registry, & ACL |
||||||||||||||
| This page was last modified 08:36, 2 December 2006. | ||||||||||||||