AussieJim Posted December 13, 2009 Report Share Posted December 13, 2009 Hi, I currently have a global variable {PARoot} which determines the base directory for my installs: {PARoot} = C:\Portable Apps. I also have a global variable {7z} which specifieds the location of 7z.exe: {7z} = C:\Portable Apps\7-Zip\App\App\7-Zip\7z.exe. What I'd really like is to use {PARoot} within {7z}'s definition: {7z} = {PARoot}\7-Zip\App\7-Zip\7z.exe. This way if the root directory changes, I only need to update one variable. I've found one way to do this: Make the {7z} variable local to every application instead of global, and declare it as a textual variable: {7z} = {PARoot}\7-Zip\App\7-Zip\7z.exe. This works fine, except that I have to declare it for every application. I can make it a default, but that still leaves it in 100 different places, if I ever change the location or need to troubleshoot. Is there any way to do this on a global basis? Thanks! Link to comment Share on other sites More sharing options...
andreone Posted December 15, 2009 Report Share Posted December 15, 2009 Another way is to put 7z.exe into your PATH environment variable. Or into Ketarin's folder (my solution). But using variable in variable is tricky, how would Ketarin know the order of definitions? How to avoid circular references? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now