If there is a better forum for this question, please feel free to move it or let me know and I will do it.
We have set it up on our domain server so that it points to a batch file (staff_maint.bat) on another server upon startup. This is done under whatever permissions the domain uses, which I believe is the system account.
It works to some extent, meaning the following command runs fine which just logs that the script has been looked at:
echo %DATE% %TIME% %COMPUTERNAME% %systemroot% access>>\\dclib3\MaintScript\log\maint_log.txt
but when I start adding a little meat to this script, such as making a call to another batch script (called weekly_xp.bat) that executes command such as the following, it does not work. It just hangs at the calling of the .exe file.....can anybody help me work through this? is this just a permissions issue, meaning system account limitations, or is there another way to accomplish it that will work. Thanks for any help you can give!
This is the command I use in the first script (staff_maint.bat) to call the below script:
IF "%computername%"=="LIBRSBVRT1" call \\dclib3\MaintScript\winxp\weekly\winxp_weekly.bat
this is the script that is not working. it gets here, because it logs Defrag_Start, but it does not execute the command.
rem ******** defrag primary hard drive c **************
echo %DATE% %TIME% %COMPUTERNAME% winxp weekly Defrag_Start>>\\dclib3\tech\MaintScript\log\maint_log.txt
call \\dclib3\MaintScript\winxp\scripts\Auto_Defrag\Defrag.exe -o2
echo %DATE% %TIME% %COMPUTERNAME% winxp weekly Defrag_End>>\\dclib3\tech\MaintScript\log\maint_log.txt
We have set it up on our domain server so that it points to a batch file (staff_maint.bat) on another server upon startup. This is done under whatever permissions the domain uses, which I believe is the system account.
It works to some extent, meaning the following command runs fine which just logs that the script has been looked at:
echo %DATE% %TIME% %COMPUTERNAME% %systemroot% access>>\\dclib3\MaintScript\log\maint_log.txt
but when I start adding a little meat to this script, such as making a call to another batch script (called weekly_xp.bat) that executes command such as the following, it does not work. It just hangs at the calling of the .exe file.....can anybody help me work through this? is this just a permissions issue, meaning system account limitations, or is there another way to accomplish it that will work. Thanks for any help you can give!
This is the command I use in the first script (staff_maint.bat) to call the below script:
IF "%computername%"=="LIBRSBVRT1" call \\dclib3\MaintScript\winxp\weekly\winxp_weekly.bat
this is the script that is not working. it gets here, because it logs Defrag_Start, but it does not execute the command.
rem ******** defrag primary hard drive c **************
echo %DATE% %TIME% %COMPUTERNAME% winxp weekly Defrag_Start>>\\dclib3\tech\MaintScript\log\maint_log.txt
call \\dclib3\MaintScript\winxp\scripts\Auto_Defrag\Defrag.exe -o2
echo %DATE% %TIME% %COMPUTERNAME% winxp weekly Defrag_End>>\\dclib3\tech\MaintScript\log\maint_log.txt