Solved

How do i run a batch file remotely

Posted on 2004-09-09
7
199 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot access port 443 4 575
demote crashed domain controller (server 2000) 3 997
Restore SQL database from 8.0 to 11.00 ? 3 1,159
Referencing a mapped drive 6 134
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…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now