IonicWind Software

IWBasic => The Roundtable => Topic started by: Junner2003 on January 20, 2007, 12:56:04 AM

Title: Path question
Post by: Junner2003 on January 20, 2007, 12:56:04 AM
I just wonder:
Why do I have to write in scripts the path with double \ like "C:\\Program Files\\..."  ??? I played around and did not get any errors while writing the paths with single \. Was I only lucky or does it work either way?
Title: Re: Path question
Post by: Ionic Wind Support Team on January 20, 2007, 01:57:12 AM
See the users guide for constants and literals.  The \ is an 'escape' character.  \n = newline, \t = tab, \" = embedded quote, \\ = a single \ inserted into the string.

You got lucky because none of the directory names started with an 'n' or 't'
Title: Re: Path question
Post by: Junner2003 on January 20, 2007, 11:22:42 AM
 :-[  :'(  :-X ... stupid me!
I forgot about that ... !