Magic User Group

Magic Wiki-Wakka : UseBackslashInINI

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register
Most recent edit on 2007-08-11 21:14:44 by InformaPlus

Additions:
Back to: TuTorials



Edited on 2005-06-29 23:48:29 by GroupsMBM [tried "tree", but took it out.]

Deletions:


HomePage > UseBackslashInINI




Edited on 2005-06-29 23:37:12 by GroupsMBM

Additions:


HomePage > UseBackslashInINI




Edited on 2005-06-29 00:18:33 by GroupsMBM

Additions:
Categories


Deletions:





Edited on 2005-06-29 00:16:55 by GroupsMBM [Added Version Info]

Additions:
Version: Generic - this has worked with magic for quite some time (v5?)



Edited on 2005-06-28 23:41:06 by NorbertGutscher

Additions:

CategoryHowTo




Oldest known version of this page was edited on 2005-06-28 15:39:30 by GroupsMBM []
Page view:
How to put \ with iniput in .magic.ini file?

By default, the "\" is the "escape" character which indicates that the next character has some special meaning.

The "proper" way of including a "\" is to escape it with another "\".

INIPUT ('[MAGIC_LOGICAL_NAMES]PATH=D:\\Temp\\2005\\')

However, this is REALLY tedious and somewhat prone to error. Magic has provided a much easier method, which is to use an asterisk "*" in the value. This instructs magic to NOT interpret the "\" as an escape character.

INIPUT ('[MAGIC_LOGICAL_NAMES]PATH=*D:\Temp\2005\')

As a point of interest and for the sake of truly understanding this use of the *, it should be noted that the * can go anywhere in the value. Any "\" characters BEFORE the * will be treated as an escape character (and therefor removed from the value), while any "\" AFTER the * will NOT be treated as an escape character (and will remain in the value).
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.1591 seconds