Jump to content
Macro Express Forums

Can we use OS environment variables for paths in macros?


Recommended Posts

  • 3 weeks later...

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.

Link to comment
Share on other sites

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\

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...