Re: remote comand



Unfortunately you chose not to tell us exactly what you're
doing, hence we cannot tell you where your problem lies.
Here is what I did:

1. Create a batch file c:\temp\test.bat on PC1:
@echo off
dir \

2. Invoke the batch file from PC2:
psexec \\pc1 c:\temp\test.bat

The batch file runs and psexec.exe returns to PC2,
as expected.


"Alberto Arias" <AlbertoArias@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5E578A0C-1C45-4C3D-B026-C09BCBB690BC@xxxxxxxxxxxxxxxx
It's work fine, but i have the same problem. When i run the tool i cant
exit.
I want to run a but ina server 1 that run some prgram with commands in
server
2, and when finish close the *.bat.
With psexec i run a program fine but dont work the @k, bye, finish, exit
and
anything tag. The are some Trick?????

Thank you for your good answer.

"Pegasus (MVP)" wrote:


"Alberto Arias" <AlbertoArias@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:8AA0F348-5203-48BF-89F1-B2406541E1F5@xxxxxxxxxxxxxxxx
There are some method to run a *.bat in a remote server??? I want to
run a
but in my first server from my second server. I found the rexec comand
but
i
can't do run. Some page or program????

Thank you very much.

Try psexec.exe from www.sysinternals.com.





.



Relevant Pages

  • Re: Renaming computers using Logon scripts from GPO
    ... I already used psexec for many different things, but never to rename computers, sometimes things can get a little bit complicated, but other times they're very sinple and in most times running psexec against large number of machines can save you a lot of work, at least to me:). ... Inside that batch file insert the following code "cmd", save the file and close it. ... As I told you from the beginning I never used this tool to rename computers, or perhaps you may find other tools that do the same thing with less work, but since you can use this tool to open, or copy your own scripts and then run them from remote location, does not sound impossible to automate this job. ...
    (microsoft.public.windows.server.active_directory)
  • Re: drag/drop file-icon on tcl-script? on windows
    ... drag a file onto the programs Icon, or it's shortcut, and ... Wrap your script in a batch file. ... start tclkit "%~f0" & exit ... Most people on windows have ActiveState so he's more likely to have ...
    (comp.lang.tcl)
  • RE: How to make a batch file to start program and close the old window?
    ... How to make a batch file to start program and closethe ... a signal when your parent shell exits. ... nohup command & ... the '&' lets the shell continue instead of waiting, and the 'exit' ...
    (Fedora)
  • Re: win32 process
    ... how can my vb.net code know that it has finished executing ... I am using Win32_Process to launch a batch file on a remote computer. ... There's a free tool from SysInternals called PsExec though, ... much more powerful - it can actually communicate StdIn and StdOut with ...
    (microsoft.public.win32.programmer.wmi)
  • Re: What permissions do I need to use admin$ ?
    ... Maury Markowitz wrote: ... > All I need to do is run a batch file. ... > rcmd fails because on this machine any attempt to run with "allow ... I have made progress with psexec. ...
    (microsoft.public.windowsxp.security_admin)