I am a beginner in VBScript.
I need execute in VBScript this command line:
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld --defaults-file=C:\Program Files\MySQL\MySQL Server 5.5\my.ini MySQL
I googled it & got to know that we can run VBScript from command line by executing below command and I have tried this:
Set oShell = Wscript.CreateObject("WScript.Shell")
oShell.run "cmd /k ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld --defaults-file=C:\Program Files\MySQL\MySQL Server 5.5\my.ini MySQL", 1, True
But the script is stopped because in the path of the file my.ini
there are some folder with space in the name, that is Program Files
and MySQL Server 5.5
How to do resolve this?
oShell.run "cmd /k ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld --defaults-file=C:\Program Files\MySQL\MySQL Server 5.5\my.ini MySQL""", 1, True
. – user692942cscript /?
at the Command Prompt too! – Compo