Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: call DOS script in Remote server  (Read 4769 times)

0 Members and 1 Guest are viewing this topic.

rao

    Topic Starter


    Greenhorn
    call DOS script in Remote server
    « on: June 24, 2008, 07:47:30 AM »
    i want to execute a DOS batch file in remote server. how to invoke script in remote server?? pls advice

    blastman



      Hopeful

      Re: call DOS script in Remote server
      « Reply #1 on: June 24, 2008, 08:04:24 AM »
      depends what your after;

      if the script is on the remote server and you want it to run on a local machine, just "start \\servername\path\to\batch\file.bat" will do the job.

      if however you want it to run on the server it's self then you'll need some 3rd party tools. I recommend Pstools as it free and has loads of useful features. One of them is psexec.

      Basic usage;

      C:\pstools\psexec \\servername C:\path\on\server\to\batch\file.bat

      useful link;

      http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

      Hope it helps.

      Blastman, you are the man. Thank You Very Much!!!!!!!!!