Click here to Skip to main content
16,006,442 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionQuestion regarding the keyword "Using" Pin
Marcus J. Smith20-Apr-07 5:03
professionalMarcus J. Smith20-Apr-07 5:03 
AnswerRe: Question regarding the keyword "Using" Pin
Dave Kreskowiak20-Apr-07 6:10
mveDave Kreskowiak20-Apr-07 6:10 
GeneralRe: Question regarding the keyword "Using" [modified] Pin
Marcus J. Smith20-Apr-07 6:11
professionalMarcus J. Smith20-Apr-07 6:11 
GeneralRe: Question regarding the keyword "Using" Pin
Dave Kreskowiak20-Apr-07 6:32
mveDave Kreskowiak20-Apr-07 6:32 
QuestionMax(rows) of msflexgrid Pin
Navneet Hegde20-Apr-07 1:45
Navneet Hegde20-Apr-07 1:45 
AnswerRe: Max(rows) of msflexgrid Pin
Tim Carmichael20-Apr-07 3:25
Tim Carmichael20-Apr-07 3:25 
AnswerRe: Max(rows) of msflexgrid Pin
Dave Kreskowiak20-Apr-07 4:30
mveDave Kreskowiak20-Apr-07 4:30 
QuestionGetting DOS output Pin
johnjsm20-Apr-07 1:43
johnjsm20-Apr-07 1:43 
Hi,
I am using the following to redirect the output of a dos command to a richtextbox but anytime I try run it to get the directory listing of a large CD nothing happens but if there is only one file on the CD it works. Can anyone help.

Dim myProcess As Process = New Process


Dim prgOutput As String ' Output from DOS program


myProcess.StartInfo.FileName = "c:\dir.bat" 'Full pathname to including file name
myProcess.StartInfo.CreateNoWindow = True ' Does not create a window DOS program
myProcess.StartInfo.UseShellExecute = False ' Must be false to redirect output
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start() ' Start the DOS program
myProcess.WaitForExit() ' Wait until it completes before moving on
prgOutput = myProcess.StandardOutput.ReadToEnd ' Get the DOS output
rtbOutput.Text = prgOutput

I am using a .bat file which has the following commands:

@ECHO OFF
d:
dir /A /S /O:GNE
c:

Running the .bat file directly from the command prompt works on the disc with loads of files

Thanks
AnswerRe: Getting DOS output Pin
kubben20-Apr-07 2:25
kubben20-Apr-07 2:25 
AnswerRe: Getting DOS output Pin
sthotakura20-Apr-07 7:58
sthotakura20-Apr-07 7:58 
GeneralRe: Getting DOS output Pin
johnjsm20-Apr-07 11:10
johnjsm20-Apr-07 11:10 
QuestionHow do you add code snippets Pin
directred20-Apr-07 1:25
directred20-Apr-07 1:25 
AnswerRe: How do you add code snippets Pin
Dave Kreskowiak20-Apr-07 4:28
mveDave Kreskowiak20-Apr-07 4:28 
QuestionUPLOADING IMAGE USING OPEN FILE DIALOG Pin
klaydze19-Apr-07 22:10
klaydze19-Apr-07 22:10 
AnswerRe: UPLOADING IMAGE USING OPEN FILE DIALOG Pin
Christian Graus19-Apr-07 23:52
protectorChristian Graus19-Apr-07 23:52 
GeneralRe: UPLOADING IMAGE USING OPEN FILE DIALOG Pin
klaydze20-Apr-07 15:46
klaydze20-Apr-07 15:46 
QuestionDirectory share and fileshare problem [modified] Pin
battulga19-Apr-07 21:56
battulga19-Apr-07 21:56 
AnswerRe: Directory share and fileshare problem Pin
Dave Kreskowiak20-Apr-07 3:43
mveDave Kreskowiak20-Apr-07 3:43 
GeneralRe: Directory share and fileshare problem Pin
battulga20-Apr-07 21:05
battulga20-Apr-07 21:05 
GeneralRe: Directory share and fileshare problem Pin
Craster23-Apr-07 5:06
Craster23-Apr-07 5:06 
QuestionResize Image Pin
nitin_ion19-Apr-07 19:53
nitin_ion19-Apr-07 19:53 
AnswerRe: Resize Image Pin
Christian Graus19-Apr-07 19:59
protectorChristian Graus19-Apr-07 19:59 
GeneralRe: Resize Image Pin
nitin_ion21-Apr-07 21:02
nitin_ion21-Apr-07 21:02 
GeneralRe: Resize Image Pin
Christian Graus21-Apr-07 23:53
protectorChristian Graus21-Apr-07 23:53 
GeneralRe: Resize Image Pin
TwoFaced22-Apr-07 7:04
TwoFaced22-Apr-07 7:04 

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.