VB.NET | Start Command w/Quotes

MuddyMojo
MuddyMojo used Ask the Experts™
on
I have the following .bat file (which works fine):

start S:\Software\release\setup.exe /s /f1"S:\Software\bin\setup.iss" /f2"C:\install.log"

It's one line and works wonders. I want to embed this command within a VB.NET exe program but keep running into issues due to the quotes used. Here is my code:

        ''Install new client
        'Dim InstallESM As New Process
        'InstallClient.StartInfo.FileName = "Setup.exe"
        'InstallClient.StartInfo.WorkingDirectory = "S:\Software\release"
        'InstallClient.StartInfo.Arguments = "/s /f1"S:\Software\bin\setup.iss" /f2"C:\install.log""
        'InstallClient.Start()
        'InstallClient.WaitForExit()

Any ideas???? Thanks!!!!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
BTW - Ignore any quotes at the beginning of each line... Those were comment quotes that carried over durung the copy/paste.
Most Valuable Expert 2012
Top Expert 2008
Commented:
Try this:

        InstallESM.StartInfo.Arguments = "/s /f1""S:\Software\bin\setup.iss"" /f2""C:\install.log"""

Bob

Author

Commented:
OK - Tried it and it ignored the parms. The program launched with no errors but with no parms passed. If it helps Setup.exe is a InstallShield setup program.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I can do without the last parm if it helps...
/f2"C:\install.log"

Author

Commented:
Wait!!! It worked!!! I took out the last parm and it worked!!! Let me test a few and get back to you.
Most Valuable Expert 2012
Top Expert 2008

Commented:
Did you check the ExitCode for the process?

Bob

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial