Jump to content
Macro Express Forums

Moving a Folder and It's Contents


patgenn123

Recommended Posts

Build the source name in a text variable, for example

VARIABLE SET STRING T1 = C:\FOLDER\*.*

Same for the destination, for example

VARIABLE SET STRING T2 = C:\NEWFOLDER

Then use the COPY FILE OR FILES command with %T1% and %T2% as the file values.

 

Alternatively, build a DOS-style COPY, XCOPY, or MOVE command in a text variable, save the variable to a text file with the .BAT extension in its name, then launch the .BAT file with the PROGRAM LAUNCH command.

Link to comment
Share on other sites

To move a folder from one location to another on the same drive use the Rename File or Files command.

 

To copy a folder use the Copy File or Files:.

 

To delete a folder use the Delete Folder.

 

To move a folder from one location to another on different drives combine the Copy File or Files: and Delete Folder commands.

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