Computing.Net > Forums > Programming > How to open cmd.exe in VB6

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.

How to open cmd.exe in VB6

Reply to Message Icon

Name: A.A,
Date: September 22, 2003 at 04:07:59 Pacific
OS: Windows 98 SE
CPU/Ram: Pentium 4,256 MB (8mb sha
Comment:

How can I open cmd.exe (Windows NT/2000/XP/Server 2003's Command prompt) in VB6 via code?



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: September 22, 2003 at 09:32:20 Pacific
Reply:

Use ShellExecute method (it is a Win32 API function)

ShellExecute Handle, "OPEN", "cmd.exe", "", "", SW_SHOW

Chi Happens


0

Response Number 2
Name: A.A. Fussy
Date: September 22, 2003 at 23:42:02 Pacific
Reply:

Thanks-that's the code I wanted.


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: How to open cmd.exe in VB6

How to create setup.exe in C / C++ www.computing.net/answers/programming/how-to-create-setupexe-in-c-c/16202.html

Open cmd.exe on remote machine www.computing.net/answers/programming/open-cmdexe-on-remote-machine/18741.html

How To Read/Write File in VB6 www.computing.net/answers/programming/how-to-readwrite-file-in-vb6/7105.html