Click here to Skip to main content
15,895,799 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:27
mveRichard MacCutchan2-May-13 1:27 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:06
savedlema2-May-13 8:06 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Eddy Vluggen2-May-13 5:07
professionalEddy Vluggen2-May-13 5:07 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 5:44
Alan N2-May-13 5:44 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:01
savedlema2-May-13 8:01 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 8:17
Alan N2-May-13 8:17 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 0:54
savedlema3-May-13 0:54 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N3-May-13 2:57
Alan N3-May-13 2:57 
If the pathname isn't quoted correctly the command processor will assume that it ends at the first space character.

It may be helpful check that the strings are correct by dumping them to a textbox or the console.
e.g.
VB
Module Module1
  Sub Main()
    Dim cmd As String = Environment.GetEnvironmentVariable("COMSPEC")
    Dim args As String = "/k ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe"" --user=root --password=mypassword --host=localhost --port=3306 --database sakila > ""C:\backup\sakilabackup.sql"""
    System.Console.WriteLine(cmd)
    System.Console.WriteLine()
    System.Console.WriteLine(args)
  End Sub
End Module


I assume that is correct as the console shows the pathname for mysqldump quoted correctly.
C:\WINDOWS\system32\cmd.exe

/k "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe" --user=root --password=mypassword --host=localhost --port=3306 --
database sakila > "C:\backup\sakilabackup.sql"


Alan.
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 4:24
savedlema3-May-13 4:24 
QuestionWord VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven1-May-13 23:08
Bart Van Eyndhoven1-May-13 23:08 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 2:28
mvaKenneth Haugland2-May-13 2:28 
QuestionRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 2:37
mvaKenneth Haugland2-May-13 2:37 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven2-May-13 4:23
Bart Van Eyndhoven2-May-13 4:23 
GeneralRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 4:54
mvaKenneth Haugland2-May-13 4:54 
GeneralRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven2-May-13 21:51
Bart Van Eyndhoven2-May-13 21:51 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
TnTinMn4-May-13 5:33
TnTinMn4-May-13 5:33 
QuestionVB Macro one sheet is corrupt Pin
saurabhrahulsharma1-May-13 16:59
saurabhrahulsharma1-May-13 16:59 
AnswerRe: VB Macro one sheet is corrupt Pin
JR2121-May-13 20:31
JR2121-May-13 20:31 
AnswerRe: VB Macro one sheet is corrupt Pin
Kenneth Haugland2-May-13 1:24
mvaKenneth Haugland2-May-13 1:24 
QuestionHow can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 10:03
Vivek1987agarwal1-May-13 10:03 
AnswerRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
dusty_dex1-May-13 11:24
dusty_dex1-May-13 11:24 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 20:49
Vivek1987agarwal1-May-13 20:49 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Richard MacCutchan1-May-13 21:24
mveRichard MacCutchan1-May-13 21:24 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 21:30
Vivek1987agarwal1-May-13 21:30 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Richard MacCutchan1-May-13 22:04
mveRichard MacCutchan1-May-13 22: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.