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
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
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.
Summary: We have some inhouse apps that were running in earlier DOS version (6.2, 5.0 etc...) and we need to migrate them to W2K cmd platform. There is a war apparently to change the version of DOS in W2K com...
Summary: Hi all, Great forum - well done everyone. I have a problem - I need to disable one CPU in one of our W2k Workstations. The reason is that one of our programmes does not support dual CPUs and crashes. ...