Computing.Net > Forums > Programming > Win2k PRogramming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Win2k PRogramming

Reply to Message Icon

Name: njax01
Date: August 23, 2006 at 11:47:49 Pacific
OS: Windows 2000 Pro
CPU/Ram: 2.7ghz /512mb
Product: Dell/Optiplex
Comment:

Hello

My question has to do with Computer Management.

I know the command to open Computer Management to a specific computer is :
compmgmt.msc /computer:computer01

Can someone tell me how to be able to be prompted for a computer name and
then have Computer Management open with that computer? I'm sure it's some
type of script or bat file, but I have no idea how to proceed.

Basically, I'd like to be able to have the following happen:

From windows or command prompt, I run a program. It prompts me for a
computer name and then Computer Management opens with that computer.

Thanks everyone!



Sponsored Link
Ads by Google

Response Number 1
Name: tonysathre
Date: August 23, 2006 at 14:54:24 Pacific
Reply:

Try this:

@echo off
echo Enter Computer name to connect to
set /p comp=

for %%i in (%comp%) do (compmgmt.msc /computer:%%i)

That's pretty basic, and will just open the snap-in connected to that computer.

"Computer security." — Oxymoron


0

Response Number 2
Name: njax01
Date: August 23, 2006 at 17:30:25 Pacific
Reply:

WOrked great! Thanks very much!


0

Response Number 3
Name: tonysathre
Date: August 24, 2006 at 18:59:31 Pacific
Reply:

Great, glad to here it.


0

Response Number 4
Name: tonysathre
Date: August 25, 2006 at 15:13:31 Pacific
Reply:

Oops, I mean hear. ;-)

"Computer security." — Oxymoron


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Library error [VB 6] Multiple inputs to...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Win2k PRogramming

C Programming fopen in Win2k www.computing.net/answers/programming/c-programming-fopen-in-win2k/3407.html

Serial Port Programming in Win2k www.computing.net/answers/programming/serial-port-programming-in-win2k/173.html

C program developed on visual C++, Versi www.computing.net/answers/programming/c-program-developed-on-visual-c-versi/1005.html