VBS

@Echo ON

Set Launcher="C:xxxxx.exe"
set Config="C:xxxCLIP.cfg"
set TargetPath=C:	emp
set LaunchFile=Calculator.xls

ECHO hostname


Hostname | find "Loc" >NUL
If not errorlevel 1 GOTO Loc

:Loc
set LaunchPath=\xxx

GOTO CALLAPP


:CALLAPP
ECHO F| xcopy "%LaunchPath%%LaunchFile%" "%TargetPath%%LaunchFile%"  /y
%Launcher% -c %Config% Sxx.dll Fxxx.dll %Params% %TargetPath%%LaunchFile%



GOTO END


:END
原文地址:https://www.cnblogs.com/xispace/p/3443820.html