Garry Shape
asked on
Batch file to restart after running exe
I have this script that's supposed to run an installation exe with switches, then restart the computer.
Is this the correct way to do it?
It seems to run the install on the XP machine and reboot, but the output in DOS window says this:
'\\server1\deploy\CitrixCl ient'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Upgrading Citrix Client
Do not close this window. It will close when the installation is complete.
Also how do I add support to the code to reboot a vista computer, do I just add an additional line at the end that says shutdown /r /f /t 01?
Adding this to vbscript department also in case there's a vbscript out there that can do this better.
Is this the correct way to do it?
It seems to run the install on the XP machine and reboot, but the output in DOS window says this:
'\\server1\deploy\CitrixCl
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Upgrading Citrix Client
Do not close this window. It will close when the installation is complete.
Also how do I add support to the code to reboot a vista computer, do I just add an additional line at the end that says shutdown /r /f /t 01?
Adding this to vbscript department also in case there's a vbscript out there that can do this better.
@ECHO OFF
ECHO Upgrading Citrix Client
ECHO Do not close this window. It will close when the installation is complete.
\\server1\deploy\CitrixClient\CitrixOnlinePluginFull.exe /silent ADDLOCAL="ICA_Client,PN_Agent,SSON" ENABLE_SSON="yes" SERVER_LOCATION="http://server1"
shutdown -r -f -t 01
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.