How to write em_command for button to move more files if I know pathes and names like this:
- five files (a.txt, b.doc, c.jpg, d.bmp, e.txt) from C:\dir1\ to D:\dir2\
- then all other files from C:\dir1\ to D:\dir3\
Thank you in advance.
How to write em_command for button to move more files
Moderators: Hacker, petermad, Stefan2, white
Re: How to write em_command for button to move more files
With Robocopy (from C:\Test\Dir1):
[em_1]
cmd=Robocopy /MOV C:\Test\Dir1 D:\Dir2 "a.txt" "b.doc" "c.jpg" "d.bmp" "e.txt"
[em_2]
cmd=Robocopy /MOV C:\Test\Dir1 D:\Dir3
[em_1]
cmd=Robocopy /MOV C:\Test\Dir1 D:\Dir2 "a.txt" "b.doc" "c.jpg" "d.bmp" "e.txt"
[em_2]
cmd=Robocopy /MOV C:\Test\Dir1 D:\Dir3
Re: How to write em_command for button to move more files
and if I want to move files and also dirs in second command?
Re: How to write em_command for button to move more files
Maybe so?
Robocopy /E /MOVE C:\Test\Dir1 D:\Dir3
Robocopy /E /MOVE C:\Test\Dir1 D:\Dir3
Re: How to write em_command for button to move more files
2sa16
thanks, it works.
And still one problem:
If the old files (related to the first command) are still in target they are automatically overwriten by new one. Is there option to avoid overwriting e.g. autorename or do not move in such case?
thanks, it works.
And still one problem:
If the old files (related to the first command) are still in target they are automatically overwriten by new one. Is there option to avoid overwriting e.g. autorename or do not move in such case?
Re: How to write em_command for button to move more files
robocopy C:\dir1 D:\dir2 a.txt b.doc c.jpg d.bmp e.txt /mov /ndl /nfl /njh /njs /xc /xn /xo |
Overquoting is evil! 👎
Re: How to write em_command for button to move more files
2Fla$her thank you for help