October 29, 2025, 07:17:42 AM

News:

IWBasic runs in Windows 11!


Path question

Started by Junner2003, January 20, 2007, 12:56:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Junner2003

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?

Ionic Wind Support Team

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'
Ionic Wind Support Team

Junner2003

 :-[  :'(  :-X ... stupid me!
I forgot about that ... !