I am able to execute basic operation by triggering batch script on remote location using following command.
psexec -e -h -s -u User -p pass \\10.0.0.240 C:\test.bat
But when the test.bat file is calling other program specific script like somepy.py then I am getting error on master batch file that these are not internal command.
Master batch file in Host computer:
CODE
psexec -e -h -s -u user -p pwd \\10.0.0.240 C:\Users\Desktop\TEST\test.bat
Command inside test.bat
located in remote PC:
cd C:\Users\Desktop\TEST1
impact -batch test_impact_warp_AP.cmd
`pause`
waitfor /t 5 StartNow
REM wait for 5second
echo "Run python script for Warp"
cd C:\Users\Desktop
call warp-python.bat
ipconfig /all
ping google.com
Command inside warp-python.bat
present in remote machine:
set PYTHONPATH=C:\Users\Desktop\Python_Reference
cd C:\Users\Desktop\Python_Reference\examples\PYTHON_SCRIPT
python t_capture.py
- When I executed the test.bat script directly then
warp-python.bat
as well astest_impact_warp_AP.cmd
executes perfectly without any error. But when i try to execute test.bat from remote location then
*python*
and*impact*
commands are not recognised. and gives following error:'Impact' is not recognised as an internal or external Command
Butipconfig/all
andping
command is executed perfectly in remote PC- What am I missing in the command line argument such that psexec in not able to executed the command in remote location