TsunamiZ Posted July 4, 2013 Report Posted July 4, 2013 Can we use OS environment variables for paths in macros? Example, can we use... %TEMP% for %SystemDrive%\Users\{username}\AppData\Local\Temp Or do we have to use actual paths? Quote
Samrae Posted July 5, 2013 Report Posted July 5, 2013 I thought so. What happened when you tried it? Quote
Cory Posted July 25, 2013 Report Posted July 25, 2013 Of course you can. You should do some simple tests before posting. Use TextBox Display and enter %Temp% in the box content. Much quicker than asking the question here. Quote
redwards Posted July 30, 2013 Report Posted July 30, 2013 I have this is a MEP script. It is a one liner (Text Box Display) - I use it a reference ALLUSERSPROFILE = %ALLUSERSPROFILE% APPDATA = %APPDATA% LOCALAPPDATA = %LOCALAPPDATA% COMPUTERNAME = %COMPUTERNAME% COMMONPROGRAMFILES = %COMMONPROGRAMFILES% COMSPEC = %COMSPEC% HOMEDRIVE = %HOMEDRIVE% HOMEPATH = %HOMEPATH% OS = %OS% PATH = %PATH% PATHEXT = %PATHEXT% PUBLIC = %PUBLIC% PROGRAMFILES = %PROGRAMFILES% SYSTEMDRIVE = %SYSTEMDRIVE% SYSTEMROOT = %SYSTEMROOT% TEMP = %TEMP% TMP = %TMP% USERNAME = %USERNAME% USERPROFILE = %USERPROFILE% WINDIR = %WINDIR% Other Examples I've used are: --- Desktop%USERPROFILE%\Desktop\ --- Documents%USERPROFILE%\Documents\ --- Favorites%USERPROFILE%\Favorites\ --- Pictures%USERPROFILE%\Pictures\ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.