Psexec exited with error code 1 - double quotes

Why is the psexec-execute command below executed when I add double quotes to a parameter?

  • It works fine without psexec with double quotes
  • It works fine with psexec without double quotes!

enter image description here

The contents of the .bat file are as follows:

set FILEPATH=%~1 set BAT_ARCHIVE_IDENTIFIER=%~2 set DEPLOYMENT_ROOT=%~3 echo %FILEPATH% %BAT_ARCHIVE_IDENTIFIER% %DEPLOYMENT_ROOT% 
+2
command-line command-line-arguments batch-file command-prompt psexec
Jul 23 '14 at 8:33
source share
1 answer
 psexec -u user -p pass cmd /c "d:\GitRepos\runAll.bat a1 a2 "a3"" 
+4
Jul 23 '14 at 11:39
source share
β€” -



All Articles