Met same problem: using cmd's Start command to run exe. Works locally, but not remotely But solution does not work for me - I use full path to *.exe file
The task is install copy application installer from my computer (Win7, x64) to remote desktop (Win10, x64) with checking the installer version is newer than installed. So, I have two *.bat, one running from another via psexec. Part of the first .bat below. Here copy installer to remote
NET use x: \\%compname%\%sharefolder% /user:%login% %pass%
xcopy %InstallerFolder%\%InstallerFile% x:\ /s /e /d /y
NET use x: /delete
Then run InstallProcess.bat:
%InstallerFolder%\PsExec.exe \\%compname% -f -u %login% -p %pass% /c %InstallerFolder%\InstallProcess.bat
Also tried PsExec64.exe All is fine except start command:
START "" /WAIT C:\%sharefolder%\%InstallerFile% /DIR="C:\Program Files (x86)\MyApp\" /sp- ^
/verysilent ^
/suppressmsgboxes ^
/closeapplications ^
/components="..." ^
/tasks="..." ^
/log="%~n0.log"
It does not work. Just like without this command. InstallProcess.bat error code = 0. But if i run InstallProcess.bat locally on %compname% it works fine.
Thanks!