I am trying to run psexec and I keep getting the error: The specified application is not on the path. The command I am running is:
psexec \\remotecomputer -d -s -c -f myfile.bat
The batch file is located on my computer and this is what it does:
- check if a folder exsits and renames it if it does
- creates a new folder
- copies a folder from a network share to new folder on "remotecomputer"
I eventually want to run this for a list of computers and I have tried that too using the command:
psexec @list.txt -d -s -c -f myfile.bat
but this also failed with the same error.