patgenn123 Posted November 15, 2009 Report Share Posted November 15, 2009 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 Quote Link to comment Share on other sites More sharing options...
rberq Posted November 15, 2009 Report Share Posted November 15, 2009 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. Quote Link to comment Share on other sites More sharing options...
kevin Posted November 16, 2009 Report Share Posted November 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
rberq Posted November 16, 2009 Report Share Posted November 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
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.