Jump to content
Macro Express Forums

Expand Filename


Cory

Recommended Posts

In "Variable Set From File" there is an undocumented (in help) option to "Expand Filename", what does this do?

 

I've searched the ME site, KB and this forum but found no hits.

Link to comment
Share on other sites

Hello Cory!

 

Here is an excerpt from the book that explains it:

 

The Expand Filename checkbox will convert the file or folder in the Filename/Path field to a full path string before parsing it. For example, if File1.txt is entered and if the current folder is set to C:\FolderA, internally it will be changed to C:\FolderA\File1.txt before parsing. Here are a couple of things to be aware of:

  • The folder or file does not have to physically exist. The path and name will still be parsed.
  • Network paths (leading "\\") will be ignored. The Drive field variable will be set to an empty string and the leading "\\" remain as part of the path.
  • When parsing a folder, the Filename/Path field must have a trailing backslash or else it will be parsed as a file name instead of as a folder name.
  • Folder shortcuts "." and ".." work fine, but only if used with the Expand Filename checkbox, otherwise they remain as part of the path.

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...