May 30, 200520 yr 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.
May 30, 200520 yr 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
Create an account or sign in to comment