RSpisketts Posted May 30, 2005 Posted May 30, 2005 Hi, Does anyone know of a trick to determine the path of the operating system directory, covering Windows and Mac. For instance, C:Windows (XP) or C:Winnt (W2K) or (Mac). I can't find anything in Help. Thanks, Roger.
QuinTech Posted May 30, 2005 Posted May 30, 2005 Hi, Roger. I can't help you on the Mac side, but in a Win environment, I would do this in four steps: 1. Send Event [File] (the file to choose is a batch file, fileWin:/C:/setForFmp.cmd, which contains one step: set>>C:envVars.txt) 2. Import (import from C:envVars.txt into the field data) 3. Replace Contents (replace the contents of the field named flag with "environmental variable") 4. Find the string "windir=" in the field data 5. You now have the data "windir=C:Winnt", for example, in that field. Do as you wish with it (maybe copy it to a global variable). 6. Find "environmental variable" in flag 7. Delete found records. See the attachment for an example. J RSpisketts.zip
RSpisketts Posted June 3, 2005 Author Posted June 3, 2005 Hi, thats a great solution - thanks alot. Roger.
Recommended Posts
This topic is 7112 days old. Please don't post here. Open a new topic instead.
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