Computing.Net > Forums > Windows 2000 > Execute DOS command on Remote Compu

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Execute DOS command on Remote Compu

Reply to Message Icon

Name: jenny
Date: February 3, 2003 at 02:09:47 Pacific
OS: Win2000
CPU/Ram: 1G/256R
Comment:

Would like to ask if there's any way to execute a DOS command on a remote server?
(e.g. on Server A, run dos command "dir" to query files of Server B)

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Mark
Date: February 3, 2003 at 02:42:13 Pacific
Reply:

You could map the default share 'C$' then simply use the 'CMD' window to navigate the drive.


0

Response Number 2
Name: jenny
Date: February 3, 2003 at 03:29:02 Pacific
Reply:

m.... but i need to run various dos command instead of just "dir". Any other ways to run dos command on a remote server ?


0

Response Number 3
Name: Jason
Date: February 3, 2003 at 04:27:23 Pacific
Reply:

You could turn on the Telnet server.

1. Go to control panel
2. Administrative Tools
3. Telnet Server Administration
--------

It is not the best ( nothing like logging into a Linux box ) -- but you will be able to do a few things.


0

Response Number 4
Name: Mark
Date: February 3, 2003 at 04:30:42 Pacific
Reply:

What about this then:

The 'AT' command is usually for scheduling commands remotely at whatever time, but if you don't enter a time it'll run imidiately.

eg:

at \\servername winword.exe

For a DOS command, precede the command with 'CMD'.

The full syntax for this can be found in the file: C:\winnt\help\ntcmds.chm

Hope this helps.


0

Response Number 5
Name: jenny
Date: February 3, 2003 at 04:55:19 Pacific
Reply:

Hi, Mark,

I've tried
at \\servername winword.exe
but it seems not allow me to input no time
(it returns the usage menu)

Any more idea on run a dos command on a remote server ? does windows script work ?


0

Related Posts

See More



Response Number 6
Name: Mark
Date: February 3, 2003 at 06:59:34 Pacific
Reply:

Couldn't you try sticking a time in a few minutes ahead? Below's probably a better example than the one I gave before:

at \\server 15:05 cmd /c ping server2

This'll schedule 'cmd /c ping server2' in the scheduled tasks to run in five minutes time (assuming it's 15:00), it'll then delete itself once ran.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Execute DOS command on Remote Compu

DOS applications on Win 2K Pro - PROBLEM www.computing.net/answers/windows-2000/dos-applications-on-win-2k-pro-problem/16335.html

Run a command on a Remote Computer www.computing.net/answers/windows-2000/run-a-command-on-a-remote-computer/50873.html

Executing IE on remote pc via WMI www.computing.net/answers/windows-2000/executing-ie-on-remote-pc-via-wmi/51131.html