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

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,
0
schinni
Asked:
schinni
1 Solution
 
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
 
Pete LongConsultantCommented:
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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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

Featured Post

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.

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