Click here to Skip to main content
16,005,682 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAppend text file Pin
jds120718-Dec-06 4:10
jds120718-Dec-06 4:10 
AnswerRe: Append text file Pin
Martin.Smith18-Dec-06 4:36
Martin.Smith18-Dec-06 4:36 
GeneralRe: Append text file Pin
jds120718-Dec-06 5:12
jds120718-Dec-06 5:12 
AnswerRe: Append text file Pin
Martin.Smith18-Dec-06 23:03
Martin.Smith18-Dec-06 23:03 
GeneralRe: Append text file Pin
jds120719-Dec-06 8:08
jds120719-Dec-06 8:08 
GeneralRe: Append text file Pin
Martin.Smith19-Dec-06 20:24
Martin.Smith19-Dec-06 20:24 
QuestionCommand prompt (cmd.exe) as a hidden process Pin
Martin.Smith18-Dec-06 2:58
Martin.Smith18-Dec-06 2:58 
AnswerRe: Command prompt (cmd.exe) as a hidden process Pin
Dave Kreskowiak18-Dec-06 8:42
mveDave Kreskowiak18-Dec-06 8:42 
I can duplicate your problem, but I can't figure out why it's doing what it is. I think it has something to do with UseShellExecute, but you don't have much of a choice there considering you can't redirect the Streams without it being False.

The reason I say this is because you start the CMD process WITHOUT the shell. Any process that's launched from that CMD will ALSO not be launched from the Shell. The START executable gets around that by creating a new instance of the Shell and launching your command line through that (I THINK!). Funny thing is that you can't launch your hidden, or otherwise, CMD process with "START CMD.EXE" while UseShellExecute is False! You also can't tell your successfully launched hidden CMD process to launch another CMD process using START ("CMD.EXE /K START CMD.EXE") without a Win32 error stopping you.

Sorry, it looks like there is no way around this that I can think of...


Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: Command prompt (cmd.exe) as a hidden process Pin
Martin.Smith18-Dec-06 23:06
Martin.Smith18-Dec-06 23:06 
QuestionFile transfer on LAN.......... Pin
Nagraj Naik18-Dec-06 1:59
Nagraj Naik18-Dec-06 1:59 
AnswerRe: File transfer on LAN.......... Pin
Dave Kreskowiak18-Dec-06 6:00
mveDave Kreskowiak18-Dec-06 6:00 
GeneralRe: File transfer on LAN.......... Pin
Nagraj Naik18-Dec-06 19:21
Nagraj Naik18-Dec-06 19:21 
GeneralRe: File transfer on LAN.......... Pin
Dave Kreskowiak19-Dec-06 3:12
mveDave Kreskowiak19-Dec-06 3:12 
QuestionDeserialization Pin
Nick Jones18-Dec-06 0:30
Nick Jones18-Dec-06 0:30 
QuestionHow i read/write data from the USB port in vb.net? Pin
Agbaria Ahmad17-Dec-06 20:51
Agbaria Ahmad17-Dec-06 20:51 
AnswerRe: How i read/write data from the USB port in vb.net? Pin
Dave Kreskowiak18-Dec-06 5:53
mveDave Kreskowiak18-Dec-06 5:53 
QuestionFormatting dates in a crystal report Pin
steve_rm17-Dec-06 18:06
steve_rm17-Dec-06 18:06 
AnswerRe: Formatting dates in a crystal report Pin
Tarakeshwar Reddy17-Dec-06 19:27
professionalTarakeshwar Reddy17-Dec-06 19:27 
QuestionHow to programatically select a windows media player playlist Pin
ckase17-Dec-06 17:22
ckase17-Dec-06 17:22 
QuestionCapture the tab key on the key down Pin
steve_rm17-Dec-06 16:31
steve_rm17-Dec-06 16:31 
AnswerRe: Capture the tab key on the key down Pin
Tarakeshwar Reddy17-Dec-06 17:54
professionalTarakeshwar Reddy17-Dec-06 17:54 
AnswerRe: Capture the tab key on the key down Pin
The ANZAC17-Dec-06 18:36
The ANZAC17-Dec-06 18:36 
QuestionSimple printing from a text file Pin
rudemusik17-Dec-06 12:14
rudemusik17-Dec-06 12:14 
AnswerRe: Simple printing from a text file Pin
Agus Budianto27-Dec-06 3:21
Agus Budianto27-Dec-06 3:21 
QuestionGraphic File Viewer Pin
Simmy717-Dec-06 9:23
Simmy717-Dec-06 9:23 

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.