Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically launch cmd window

Status
Not open for further replies.

DoraC

Programmer
May 7, 2002
98
US
Hi,

I'd like to automatically launch a Command Prompt window from a script. I've tried to do this and, while there are no errors, a new window does not launch. The command I'm trying to run is
Code:
C:\WINNT\system32\cmd

If I type this in at an existing command-prompt, it returns some information such as
Code:
C:\WINNT\system32>cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
But no new window launches. How can I simulate a double-click on the icon, from within a script?

Thank you!
dora
 
Hi,

Use START CMD

from the command line to open a second command prompt window. Otherwise, you are just running one copy of CMD.EXE from within another.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top