Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do i run a batch file remotely

Posted on 2004-09-09
7
202 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cursor typing problems 5 47
Group Policy 9 560
How to change folder redirection to a new server 5 743
Closing cmd window after script execution 4 363
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…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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