Solved

How do i run a batch file remotely

Posted on 2004-09-09
7
201 Views
Last Modified: 2010-04-14
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
Comment
Question by:schinni
7 Comments
 
LVL 10

Expert Comment

by:dis1931
ID: 12017039
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
 
LVL 4

Expert Comment

by:Kaarthick
ID: 12017074
The AT command schedules commands and programs to run on a computer at a specified time and date.
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 12017119
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Expert Comment

by:DanSmall
ID: 12033878
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
 

Expert Comment

by:DanSmall
ID: 12033880
The solution depends on what your trying to do with the batch file and from what

Dan
0
 

Author Comment

by:schinni
ID: 12036783
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
 

Accepted Solution

by:
DanSmall earned 75 total points
ID: 12038757
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question