How do i run a batch file remotely

Hello,

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..

Thanks,
schinniAsked:
Who is Participating?
 
DanSmallConnect With a Mentor Commented:
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.  
0
 
dis1931Commented:
Use psexec found at:

http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

You can run any program remotely...you can either run this directly or open a cmd line using psexec and then execute this
0
 
KaarthickCommented:
The AT command schedules commands and programs to run on a computer at a specified time and date.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
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 :)

http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

Remote Exec from PNLTools

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


0
 
DanSmallCommented:
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.
0
 
DanSmallCommented:
The solution depends on what your trying to do with the batch file and from what

Dan
0
 
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.
0
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.

All Courses

From novice to tech pro — start learning today.