How to Install ‘Compass’ Program

Copy Compass from \\FILE02\Apps\Compass to C:\Compass
 
Script:
 
Create shortcut on desktop with target of: C:\Compass\OMNIS7.EXE agy2000.lbr
 
install_compass.bat:
————-
@echo off
robocopy \\srvifile02\ISI\sys1\Compass c:\compass /E /R:0 /NP 
set SCRIPT=”%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs”
echo Set oWS = WScript.CreateObject(“WScript.Shell”) >> %SCRIPT%
echo sLinkFile = “%USERPROFILE%\Desktop\myshortcut.lnk” >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = “C:\Compass\OMNIS7.EXE” >> %SCRIPT%
echo oLink.Save >> %SCRIPT%
cscript %SCRIPT%
del %SCRIPT%
exit

Leave a Reply

Your email address will not be published. Required fields are marked *