|
| |||||||||
| Tags: batch file, remote computer, remote server, server |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Execute a batch file on a remote computer?
Is it possible to execute a batch file on a remote PC or server? |
|
#2
| |||
| |||
|
Using psexec.exe, you can execute any non-GUI program on a remote machine. You can get it from |
|
#3
| |||
| |||
| re: Execute a batch file on a remote computer?
I would like to know if there is a command to use. I use PSExec all the time but I'm working on making a VB program and need a code for that. It is nicest if you do not have to use a 3rd party software. |
|
#4
| |||
| |||
| re: Execute a batch file on a remote computer?
This will probably do the trick: http://www.microsoft.com/technet/scr...5/hey0701.mspx. For more details I recommend you post scripting questions in a scripting newsgroup, e.g. in server.scripting. |
|
#5
| |||
| |||
| Re: Execute a batch file on a remote computer?
Hi Did you get any vb code regarding the same ? |
|
#6
| |||
| |||
| Re: Execute a batch file on a remote computer?
Please post the batch file |
|
#7
| |||
| |||
| Re: Execute a batch file on a remote computer? You can try to add the computer names to a text file named computerlist.txt, one per line. Then paste the script below into a different text file with a .cmd extension. Code: @echo off setlocal set startdir=c$\Documents and Settings\All Users\Start Menu\Programs\Startup set newfile=\\w2k3fs01\login\winsocktest\winsocktest1.exe.lnk for /F %%G in (computerlist.txt) do ( del /q "\\%%G\%startdir%\Shortcut to winsocktest1.*" 2>> errors.txt xcopy "%newfile%" "\\%%G\%startdir%\" /C /H /R /Y 2>> errors.txt ) |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Execute a batch file on a remote computer?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute commands of batch file at timed intervals | Camryn | Software Development | 5 | 27-03-2010 09:47 PM |
| How to execute a command in a remote computer? | austin26 | Technology & Internet | 3 | 12-12-2009 08:34 PM |
| How to execute a save command in background from a batch file | Jo-Anne | Windows x64 Edition | 1 | 18-09-2009 05:45 AM |
| Execute a batch file on remote host | Hulicat | Windows Server Help | 5 | 20-06-2009 02:35 AM |
| Execute a BAT File in a remote machine | Juanjillo | Windows Server Help | 4 | 23-02-2007 01:55 PM |