PDA

View Full Version : registry key-%Appdir%


dan37_123
02-07-2002, 11:26 PM
Hi,

My applicated is intalled in say:

c:\daniel\MyApp

This is written to %Appdir% in sf. I can perfectly use this variable %Appdir% to write my path to the registry.

Question: if just want to write only the root path say here; c:\daniel to the registry. I had to parse the %Appdir% varible and do string manipulation to accomplish my objective.

IS THERE A EASIER WAY TO DO IT?

THANKS
DANIEL

csd214
02-08-2002, 02:42 AM
Originally posted by dan37_123:
IS THERE A EASIER WAY TO DO IT?

Parse Path command with Source Path = "%AppDir%." (AppDir + point) and Information to store = "Drive and folder"
One single command; could it possibly be easier?

dan37_123
02-08-2002, 05:55 AM
Well not exactly that simple,

the %Appdir% with "dirve(folder1\folder2)

the whole path of the target directly is written.

I want the hole path, excluding the install directory (the target folder).

csd214
02-09-2002, 12:14 AM
Sorry, I have obviously not understood the question. I thought the task was to transform the content of %AppDir" ("C:\Daniel\My App") one level up (to "C:\Daniel").