BoardBabe Posted May 22, 2005 Posted May 22, 2005 The paths below contains spaces. The $installerpath executable runs fine, but does not loadinf the $inipath, cause there are spaces in path.; Installation file paths.$installerpath = @ScriptDir & "\klmcodec.exe"$inipath = @ScriptDir & "\klmcp.ini"Run($installerpath & " /loadinf=" & $inipath)Need the abowe transformed to as follows.C:\some path\klmcodec.exe /loadinf="C:\some path\klmcp.ini"
MHz Posted May 22, 2005 Posted May 22, 2005 ; Installation file paths.$installerpath = @ScriptDir & "\klmcodec.exe"$inipath = @ScriptDir & "\klmcp.ini"Run($installerpath & ' /loadinf="' & $inipath & '"')You need to wrap the double quotes, for the parameter, if it has spaces. For this use single quotes. I use single quotes by default, so when you come across a line like this, it seems simpler to wrap.' " ' = wrapped double quotes.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now