PDA

View Full Version : double slash c:\\ how to get rid of it



dan37_123
02-18-2002, 02:00 PM
HI,

How to get rid of the \\ in path.

when i use %Appdir%dir1
it gives me like this:

c:\\my\\app\\dir\dir1

i dont want the doulbe slashes.

thanks
daniel

Darryl
02-18-2002, 02:23 PM
I'm not sure how you are receiving these double slashes in the first place. Perhaps you can give a little more information as to where you are receiving the path string for %AppDir%.

------------------
Sincerely,

Darryl Hnatiuk
Indigo Rose Corporation

tomarppe
02-18-2002, 05:27 PM
Funnily enough I have the opposite problem i would need to produce double slashes as e.g.java binary path needs it as a slash is a "forbidden" character but you can present it with a leading slash. what i would need is java.binarypath=c:\\programdir\\path\\JRE\\1.3.1\\ bin\\hotspot\\jvm.dll and not java.binarypath=c:\prgramdir\path\\JRE\\1.3.1\\bin \\hotspot\\jvm.dll
The Parse path seems not to offer this.
Cheers
Tom

dan37_123
02-18-2002, 11:35 PM
what i did was, i read from the registry an install path.

%MyInstallPath%=%Appdir%

and i use %Appdir% to write the path to my ini file. This is where i get the double slashes.

Mark
02-19-2002, 09:27 AM
Hi,

If you place %AppDir% on a screen does it display double slashes? Or do the double slashes only appear when you write to an INI file? What about the registry value does it have double slashes in it as well?

mark.