• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

How do i run a batch file remotely


I have a batch file on Server1\C$\test.bat.

I want to run that batch file from my client.

How do i do that..

1 Solution
Use psexec found at:


You can run any program remotely...you can either run this directly or open a cmd line using psexec and then execute this
The AT command schedules commands and programs to run on a computer at a specified time and date.
Pete LongTechnical ConsultantCommented:
Remotely Execute

These are handy applications for running software remotely, even if the software is not on the remote host.

PSExec from sysinternals (FREEWARE) - allready mentioned by dis1931 :)


Remote Exec from PNLTools

http://www.pnltools.com/RemoteExec.asp (£120.00 per administrator)

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Another way that this can be acompleshed is by putting the batch file in your GPO (win2k & 2k3) or in you "repl/logon/export" (NT 4.0) and run it as a logon script.  There are some differences depending on your O/S.
The solution depends on what your trying to do with the batch file and from what

schinniAuthor Commented:
I have a batch file on a server which stops certain services and i want to call that batch file from
a batch file on my client machine.
If your trying to stop the services on your client machine you can just run it as a logon script if your trying to stop it on your server you can schedule a task that will run the batch file.

to call one batch file from another batch file you can use the "Call" command.  
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now