MSFN Forum: Spaces in path -AutoIt - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Spaces in path -AutoIt Rate Topic: -----

#1 User is offline   BoardBabe 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,419
  • Joined: 04-October 04

Posted 22 May 2005 - 11:32 AM

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"


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

  Posted 22 May 2005 - 11:47 AM

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

;)

#3 User is offline   BoardBabe 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,419
  • Joined: 04-October 04

Posted 22 May 2005 - 11:54 AM

Perfect :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy