Jump to content

Recommended Posts

Posted

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"


Posted

; 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.

;)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...