Computing.Net > Forums > Windows 2000 > remote command in W2K

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.

remote command in W2K

Reply to Message Icon

Name: dav1bo
Date: September 30, 2004 at 12:37:01 Pacific
OS: w2k
CPU/Ram: P4/256
Comment:


I start a remote command in W2K by using:
“startrcmd \\computer <file://computer/> name” on a cmd line in a “DOS” box.
It runs for a few seconds. Now the “DOS” box is sort of on my PC but also sort of on the remote PC.
It’s sort of on my PC since if i type by hand a new command it executes in the DOS box on my PC. But it’s also in the remote PC because if type “ipconfig /all”, the DOS box shows the settings and host name of the remote PC.
Now that’s all OK but here’s the problem: If I type CD\ it will go to the root directory on the remote PC, that’s OK. But if I have CD\ [or any other command] as part of a batch file it will not execute.
Again if I type it by hand it does run, but as the next line in a batch file it does not.
It’s like I need to somehow send those keystrokes somehow to the remote PC,
Again if I put these 2 lines in a batch, the first line will execute, the 2nd [or 3rd, 4th, etc lines [CD\ in this case] will NOT execute.
startrcmd <\\computer name> [line 1 will execute]
CD\ this line 2 will NOT execute in a batch, but will if i type it in by hand
Any help appreciated



Sponsored Link
Ads by Google

Response Number 1
Name: Rick McNabb
Date: September 30, 2004 at 14:05:54 Pacific
Reply:

When you run a batch file it runs from a new "shell" process. Copy the batch file to the remote machine and run it or modify the batch file to use net use to map a drive and CD to it.


0

Response Number 2
Name: dav1bo
Date: October 5, 2004 at 08:33:11 Pacific
Reply:

Thanks Rick,
Can you give me specific details of youir answer:
When you run a batch file it runs from a new "shell" process. Copy the batch file to the remote machine and run it or modify the batch file to use net use to map a drive and CD to it.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: remote command in W2K

I do not see Kill Command in Win2K www.computing.net/answers/windows-2000/i-do-not-see-kill-command-in-win2k/63145.html

Changing DOS version in W2K www.computing.net/answers/windows-2000/changing-dos-version-in-w2k/15727.html

Disable One CPU in W2k www.computing.net/answers/windows-2000/disable-one-cpu-in-w2k/16696.html