Click here to Skip to main content
15,896,326 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Writing text in next line Pin
Tom Deketelaere26-Jul-07 3:16
professionalTom Deketelaere26-Jul-07 3:16 
GeneralRe: Writing text in next line Pin
Archana New to Dotnet26-Jul-07 19:19
Archana New to Dotnet26-Jul-07 19:19 
AnswerRe: Writing text in next line Pin
Rupesh Kumar Swami27-Jul-07 0:00
Rupesh Kumar Swami27-Jul-07 0:00 
QuestionBatch file problem Pin
The Mighty Atom26-Jul-07 3:07
The Mighty Atom26-Jul-07 3:07 
AnswerRe: Batch file problem Pin
kubben26-Jul-07 3:11
kubben26-Jul-07 3:11 
AnswerRe: Batch file problem Pin
Dave Herren26-Jul-07 3:21
Dave Herren26-Jul-07 3:21 
AnswerRe: Batch file problem Pin
Luc Pattyn26-Jul-07 3:30
sitebuilderLuc Pattyn26-Jul-07 3:30 
AnswerRe: Batch file problem Pin
Dave Kreskowiak26-Jul-07 3:44
mveDave Kreskowiak26-Jul-07 3:44 
First, the command line that you're actually running is C:\\test.bat. The two backslashes next to each other work, but could cause you problems later if used indiscriminatly.

Second, the working directory is the directory from where your code is launched. Like Luc said, you have to set the WorkingDirectory[^] property of the ProcessStartInfo object.
Dim psi As New ProcessStartInfo(Path.Combine(TextBox1.Text, "test.bat"))
psi.WorkingDirectory = TextBox1.Text
Process.Start(psi)



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Batch file problem Pin
The Mighty Atom26-Jul-07 3:50
The Mighty Atom26-Jul-07 3:50 
QuestionEnabling the MenuItem in Menu Pin
kalyan_vb26-Jul-07 2:46
kalyan_vb26-Jul-07 2:46 
AnswerRe: Enabling the MenuItem in Menu Pin
Tom Deketelaere26-Jul-07 3:11
professionalTom Deketelaere26-Jul-07 3:11 
AnswerRe: Enabling the MenuItem in Menu Pin
Luc Pattyn26-Jul-07 3:33
sitebuilderLuc Pattyn26-Jul-07 3:33 
QuestionMigrate Vb4.0 to the later version vb5.0 or vb6.0 Pin
meetkamals26-Jul-07 1:08
meetkamals26-Jul-07 1:08 
AnswerRe: Migrate Vb4.0 to the later version vb5.0 or vb6.0 Pin
Dave Kreskowiak26-Jul-07 3:31
mveDave Kreskowiak26-Jul-07 3:31 
GeneralRe: Migrate Vb4.0 to the later version vb5.0 or vb6.0 Pin
meetkamals26-Jul-07 21:28
meetkamals26-Jul-07 21:28 
GeneralRe: Migrate Vb4.0 to the later version vb5.0 or vb6.0 Pin
Dave Kreskowiak27-Jul-07 1:43
mveDave Kreskowiak27-Jul-07 1:43 
Questionhow & where to store user settings....? Pin
jamilkhan00726-Jul-07 1:08
jamilkhan00726-Jul-07 1:08 
AnswerRe: how & where to store user settings....? Pin
Tom Deketelaere26-Jul-07 1:30
professionalTom Deketelaere26-Jul-07 1:30 
GeneralRe: how & where to store user settings....? Pin
jamilkhan00726-Jul-07 23:13
jamilkhan00726-Jul-07 23:13 
AnswerRe: how & where to store user settings....? Pin
Tom Deketelaere26-Jul-07 3:14
professionalTom Deketelaere26-Jul-07 3:14 
Questionwindowapplication.exe.config file editing Pin
halder_rajib26-Jul-07 1:00
halder_rajib26-Jul-07 1:00 
AnswerRe: windowapplication.exe.config file editing Pin
Tom Deketelaere26-Jul-07 1:28
professionalTom Deketelaere26-Jul-07 1:28 
QuestionAttaching Word Document Pin
Mba-Lee25-Jul-07 23:32
Mba-Lee25-Jul-07 23:32 
AnswerRe: Attaching Word Document Pin
Tom Deketelaere26-Jul-07 1:22
professionalTom Deketelaere26-Jul-07 1:22 
AnswerRe: Attaching Word Document Pin
koolprasad200326-Jul-07 1:40
professionalkoolprasad200326-Jul-07 1:40 

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.