MSFN Forum: Apostrophe in filename - MSFN Forum

Jump to content



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

Apostrophe in filename Rate Topic: -----

#1 User is offline   gczobel 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 22-September 05

Posted 08 April 2006 - 11:03 AM

Hi!
I added a silently install for the Monkey's Audio program to WPI and works ok.

The problems is when I try to use the "grayed condition" because the install folder have the name "Monkey's Audio" (with apostrophe)

When I use this sentence
FileExists('%programfiles%\Monkey's Audio\Monkey's Audio.exe')

I receive the error: "Treating as a false condition"

How I can the apostrophe to the filename?

Thanks!


#2 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 08 April 2006 - 05:48 PM

Try a backslash before it:



Monkey\'s Audio

#3 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,754
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 April 2006 - 02:18 AM

I would look for another file in the installation folder than the exe. Maybe the help file or the readme. something that is in a normal install and doesn't have spaces in the name...

#4 User is offline   gczobel 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 22-September 05

Posted 12 April 2006 - 02:01 AM

Hi!
I can change the file name... but the problem is the directory name "Monkey's Audio"

@mritter: adding \' in the filename is treated like a new branch in the directory.

@kelsenellenelvian: WPI reeplace "escape" characters like \' to ' in the filenames?

Thanks!

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