Currently, we have a setup structure with several possible sets of data. The data sets have a user specified directory component in common, but as noted, the user specifies that part of the installation path (and hence it becomes part of %AppDir%.
For example, an installation CD may be installed in C:\Data\JNC\US with the files of interest installed in and under that specified directory. The common piece, C:\Data\JNC needs to be placed in an environment variable, but %AppDir% is C:\Data\JNC\US. I'd like to figure out how to parse %AppDir% to construct my own variable which I can then set as the value of an environment variable.
I suppose I could use %AppDir%.., but that seems unnecessarily ugly.
Checking some other posts gives me the idea that I probably can't do what I would like to do, but I'll ask anyway.
Any thoughts?
For example, an installation CD may be installed in C:\Data\JNC\US with the files of interest installed in and under that specified directory. The common piece, C:\Data\JNC needs to be placed in an environment variable, but %AppDir% is C:\Data\JNC\US. I'd like to figure out how to parse %AppDir% to construct my own variable which I can then set as the value of an environment variable.
I suppose I could use %AppDir%.., but that seems unnecessarily ugly.
Checking some other posts gives me the idea that I probably can't do what I would like to do, but I'll ask anyway.
Any thoughts?
Comment