I want to move two files a.txt, b.txt from c:\ to d:\dir. I created movefiles.txt with 2 names to select. I created 3 em commands for chain to run by 1 button (cmd=em1,em2,em3):
em1: cmd=cd c:\
em2: cmd=LOADSELECTION d:\movefiles.txt
em3: cmd=cm_Renmov /GT="d:\dir\", cm_GoToPreviousDir
The problem is, that sometimes there are none of files (a.txt nor b.txt) in source. In such case I want to move nothing. But tc moves the item under cursor (because nothing is selected). How to avoid this?
how to move (optional) files
Moderators: Hacker, petermad, Stefan2, white
Re: how to move (optional) files
By means of TC in no way. Use robocopy /mov, cmd /q/c move, etc.
Overquoting is evil! 👎
Re: how to move (optional) files
2oko
Try with LOADLIST:
button: cmd=cm_ClearAll,cm_ShowOnlySelected,em_2,cm_SelectAllFiles,cm_Renmov /GT="d:\dir\",cm_RereadSource
[em_2]
cmd=LOADLIST d:\movefiles.txt
Add:
To avoid binding to the current directory, the lines in movefiles.txt must have paths.
Try with LOADLIST:
button: cmd=cm_ClearAll,cm_ShowOnlySelected,em_2,cm_SelectAllFiles,cm_Renmov /GT="d:\dir\",cm_RereadSource
[em_2]
cmd=LOADLIST d:\movefiles.txt
Add:
To avoid binding to the current directory, the lines in movefiles.txt must have paths.