Click here to Skip to main content
15,911,711 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcreating controls dynamically Pin
Member 4169605-May-04 6:21
Member 4169605-May-04 6:21 
GeneralC# to VB.net converter Pin
fuel2run5-May-04 4:57
fuel2run5-May-04 4:57 
GeneralRe: C# to VB.net converter Pin
Dave Kreskowiak5-May-04 5:03
mveDave Kreskowiak5-May-04 5:03 
GeneralRe: C# to VB.net converter Pin
fuel2run5-May-04 6:55
fuel2run5-May-04 6:55 
Questionrun dos commands thru VB? Pin
Jarek G5-May-04 4:08
Jarek G5-May-04 4:08 
AnswerRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 5:01
mveDave Kreskowiak5-May-04 5:01 
GeneralRe: run dos commands thru VB? Pin
Jarek G5-May-04 10:01
Jarek G5-May-04 10:01 
GeneralRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 12:47
mveDave Kreskowiak5-May-04 12:47 
Where to start...

OK. There are 2 command prompt shells in WinNT and above, CMD and COMMAND. 95/98 only has COMMAND.

Now, what you want to do by stuffing the keystrokes using SendKeys is problematic at best. This is because there is no facility to make sure that, when you start the command shell, that window retains the input focus. Another window can steal the focus or the user can click in a different window. On top of that, what if the user accidentally types something in the command window your launched?

I would HIGHLY recommend looking into the Win32 Console API's, especially if you want to keep reusing the same command windows. This way, you don't have to worry about Windows versioning problems either. The docs for the Console start here[^]. A word of warning though, the documentation is written for C++ and not VB.


RageInTheMachine9532
GeneralRe: run dos commands thru VB? Pin
Jarek G5-May-04 13:49
Jarek G5-May-04 13:49 
GeneralRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 14:59
mveDave Kreskowiak5-May-04 14:59 
Generalconverting VB6 to VB.Net Pin
GaryKoh5-May-04 3:26
GaryKoh5-May-04 3:26 
GeneralRe: converting VB6 to VB.Net Pin
Dave Kreskowiak5-May-04 4:57
mveDave Kreskowiak5-May-04 4:57 
GeneralRe: converting VB6 to VB.Net Pin
jimpar5-May-04 5:05
jimpar5-May-04 5:05 
GeneralStargate - Warp affect.. Pin
coopsqc5-May-04 2:47
coopsqc5-May-04 2:47 
GeneralRe: Stargate - Warp affect.. Pin
Jarek G5-May-04 10:22
Jarek G5-May-04 10:22 
General"Push" method for crystal report Pin
Mr. Cully5-May-04 1:00
Mr. Cully5-May-04 1:00 
GeneralRe: "Push" method for crystal report Pin
Dave Kreskowiak5-May-04 4:54
mveDave Kreskowiak5-May-04 4:54 
GeneralReverse Engineering for Installer Pin
Syneric4-May-04 22:30
Syneric4-May-04 22:30 
GeneralRe: Reverse Engineering for Installer Pin
Dave Kreskowiak5-May-04 4:49
mveDave Kreskowiak5-May-04 4:49 
Generalopening power point and word documents in browser from an ASP.net project (in VB) Pin
seemeen4-May-04 20:11
seemeen4-May-04 20:11 
GeneralRe: opening power point and word documents in browser from an ASP.net project (in VB) Pin
Dave Kreskowiak5-May-04 4:47
mveDave Kreskowiak5-May-04 4:47 
GeneralPlease help us about EVB Pin
bathroom4-May-04 19:50
bathroom4-May-04 19:50 
Generalmy assignment Pin
Anonymous4-May-04 14:22
Anonymous4-May-04 14:22 
GeneralRe: my assignment Pin
Dave Kreskowiak4-May-04 15:31
mveDave Kreskowiak4-May-04 15:31 
GeneralRe: my assignment Pin
Colin Angus Mackay4-May-04 22:13
Colin Angus Mackay4-May-04 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.