Run a Ms-Dos Command Remotely

Hi,

I need to run a Ms-Dos command from one server to another. say i m on  server 78.246.105.126 and need to execute a command on 78.246.105.125 how would I execute that command. The background of the problem is i have  search server program installed on 78.246.105.125 and I need to run a clear search command like indexeradmin clearcollection ABC from 78.246.105.126?

78.246.105.125 has windows server 2003 installed on it.
mmalik15Asked:
Who is Participating?
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
You want to use PSExec from the above link.  You issue the following to run the program

psexec \\computername programname.exe
0
 
mmalik15Author Commented:
thanks for the comments

I have slightly different issue as i dont want to run an exe file on a remote computer.

say if i m logged on 78.246.105.125 and i have command window open i will type in the following command and this command would execute

C:/indexeradmin cleancollection somename

now I want to run and schedule this command using a batch file on 78.246.105.126. I know how to create a task and schedule it, all i m looking for is the command which i need to put in batch file
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LeDaoukCommented:
yeh use it to run the command prompt on the remote computer
0
 
LeDaoukCommented:
psexec \\computername cmd.exe
0
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
If you are asking about making a scheduled task, the command is "at".  Go to a command line and issue the following command for instructions.

at /?

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.