Jump to content
Macro Express Forums

Recommended Posts

Posted

Hello.

 

I was trying to figure out how to move or copy a folder and it's entire contents(files) to another location, but for some reason I cannot figure out how to do it.

 

Does anyone know a simple routine for this?

 

Pat Gennarelli

Posted

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.

Posted

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.

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

Make very sure the Copy was successful before you do the Delete.

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