Click here to Skip to main content
15,902,189 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How we will check wherther a folder is present in treeview or not Pin
Coding C#1-Sep-06 4:43
Coding C#1-Sep-06 4:43 
QuestionOpen word Pin
eyalso1-Sep-06 2:49
eyalso1-Sep-06 2:49 
AnswerRe: Open word Pin
KreativeKai7-Sep-06 9:15
professionalKreativeKai7-Sep-06 9:15 
Questionconverting numeric currency into corresponding words format Pin
Pradip Kishore1-Sep-06 2:17
Pradip Kishore1-Sep-06 2:17 
AnswerRe: converting numeric currency into corresponding words format Pin
Dave Kreskowiak1-Sep-06 2:54
mveDave Kreskowiak1-Sep-06 2:54 
QuestionWrite in command window Pin
nitin_ion1-Sep-06 1:18
nitin_ion1-Sep-06 1:18 
AnswerRe: Write in command window Pin
Davelister3-Sep-06 7:17
Davelister3-Sep-06 7:17 
GeneralRe: Write in command window Pin
nitin_ion3-Sep-06 7:36
nitin_ion3-Sep-06 7:36 
Try this, this is what i have tried.

Dim strBatchFilrPath As String = c:\batchfile.bat

Dim procCMD As New System.Diagnostics.ProcessStartInfo("CMD.exe")

procCMD.UseShellExecute = False
procCMD.RedirectStandardOutput = True
procCMD.RedirectStandardInput = True
procCMD.RedirectStandardError = True

Dim proc As System.Diagnostics.Process = System.Diagnostics.Process.Start(procCMD)

Dim strm As System.IO.StreamReader = System.IO.File.OpenText(strBatchFilrPath)
Dim sOut As System.IO.StreamReader = proc.StandardOutput
Dim sIn As System.IO.StreamWriter = proc.StandardInput
' Write each line of the batch file to standard input

While (strm.Peek <> -1)
sIn.WriteLine(strm.ReadLine)
End While
strm.Close()


Dim stEchoFmt As String = "# {0} run successfully. Exiting"
sIn.WriteLine(String.Format(stEchoFmt, strBatchFilrPath))
sIn.WriteLine("EXIT")
' Close the process
proc.Close()
Dim results As String = sOut.ReadToEnd.Trim
' Close the io Streams;
sIn.Close()
sOut.Close()
QuestionHelp with Errors in Vb.NET Pin
Tokorie31-Aug-06 23:32
Tokorie31-Aug-06 23:32 
QuestionDAO Access 2003 Connectivity Problem Pin
manish2431-Aug-06 22:15
manish2431-Aug-06 22:15 
AnswerRe: DAO Access 2003 Connectivity Problem Pin
hannesHTG31-Aug-06 22:52
hannesHTG31-Aug-06 22:52 
AnswerRe: DAO Access 2003 Connectivity Problem Pin
Dave Kreskowiak1-Sep-06 2:49
mveDave Kreskowiak1-Sep-06 2:49 
GeneralRe: DAO Access 2003 Connectivity Problem Pin
manish241-Sep-06 3:33
manish241-Sep-06 3:33 
QuestionOpen Calculator Pin
ghost18131-Aug-06 20:42
ghost18131-Aug-06 20:42 
AnswerRe: Open Calculator Pin
CWIZO31-Aug-06 22:54
CWIZO31-Aug-06 22:54 
GeneralRe: Open Calculator Pin
ghost1814-Sep-06 17:25
ghost1814-Sep-06 17:25 
QuestionCompatible Cryptography .NET and PHP Pin
xclone31-Aug-06 20:38
xclone31-Aug-06 20:38 
Questionemmbed flash player Pin
t3j031-Aug-06 19:25
t3j031-Aug-06 19:25 
QuestionAuto incrementing version numbers Pin
Ray Cassick31-Aug-06 18:01
Ray Cassick31-Aug-06 18:01 
AnswerRe: Auto incrementing version numbers Pin
Dave Kreskowiak1-Sep-06 2:46
mveDave Kreskowiak1-Sep-06 2:46 
GeneralRe: Auto incrementing version numbers Pin
Ray Cassick1-Sep-06 5:40
Ray Cassick1-Sep-06 5:40 
GeneralRe: Auto incrementing version numbers Pin
Dave Kreskowiak1-Sep-06 6:30
mveDave Kreskowiak1-Sep-06 6:30 
GeneralRe: Auto incrementing version numbers Pin
Ray Cassick1-Sep-06 8:21
Ray Cassick1-Sep-06 8:21 
GeneralRe: Auto incrementing version numbers Pin
Dave Kreskowiak1-Sep-06 9:43
mveDave Kreskowiak1-Sep-06 9:43 
QuestionResize a positioning Pin
Magno R. Vasquez31-Aug-06 11:08
Magno R. Vasquez31-Aug-06 11:08 

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.