[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3267
  • Last Modified:

Psexec error

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.

Can someone please help me with this?  Thanks.
0
PPPL-helpdesk
Asked:
PPPL-helpdesk
  • 3
  • 3
  • 2
  • +1
1 Solution
 
jesajaCommented:
0
 
johnb6767Commented:
Is myfile.bat in the same folder as psexec?
0
 
ekincamCommented:
Try putting the full path name to the batch file on your computer rather than just the batch file.

IE you put the command similar to this:
psexec \\remotecomputer -d -s -c -f c:\pstools\myfile.bat
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
ekincamCommented:
Additionally, if you have spaces in the absolute path, then you use double-quote, ie "c:\some path\pstools\myfile.bat", to enclose the command
0
 
PPPL-helpdeskAuthor Commented:
myfile.bat is in the same folder as psexec
I have also tried the full path name and it did not work and the path does not have any spaces.

I can see psexec works because if I do
psexec \\computer name ipconfig /all
0
 
jesajaCommented:
Did you read the link and tested to use it like this with .exe and only the -c ?

psexec.exe @File.txt -c SoftwareExtensionSearch.vbs
0
 
PPPL-helpdeskAuthor Commented:
Ok, that worked and it also worked with -d -s -c -f.  Are there any limitations on how much I could copy with psexec?  I am having a weird issue.  On both computers the folder stopped copying at 500MB.
0
 
jesajaCommented:
psexec executes programs on remote systems like your batch file. So I would consider that something is with the batch

what happens when you execute the batch on the remote system manually?

can you place the code here

try robocopy to transfer files or rsync

0
 
PPPL-helpdeskAuthor Commented:
I found that the antivirus software was blocking it after a certain point, so you can ignore my last question.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now