This command copies the selected files to the target panel folder. it can be run.
cmd=%COMSPEC% /c
param=for %%i in (%P%S) do xcopy %%i "%Tbackup_%|$DATE:Y-M-D_h·m·s|\" /s /e /h /y
Replace %T with %P, it will fail
cmd=%COMSPEC% /c
param=for %%i in (%P%S) do xcopy %%i "%Pbackup_%|$DATE:Y-M-D_h·m·s|\" /s /e /h /y
Testing this command, error when using %P
Moderators: Hacker, petermad, Stefan2, white
Re: Testing this command, error when using %P
The choice of section is unclear. The /e and /s options are not needed for selected files.
But it's better this way:
Code: Select all
TOTALCMD#BAR#DATA
%comspec% /q/c for %f in
("%S") do xcopy/chkqry %%f "%Pbackup_%|$DATE:Y-M-D_h·m·s|\"
wcmicon2.dll,62
Copy selected files to backup_Y-M-D_h·m·s\
1
Code: Select all
TOTALCMD#BAR#DATA
cm_Copy /BGO5PST="backup_%$DATE:Y-M-D_h·m·s%\"
wcmicon2.dll,62
Copy selected files to backup_Y-M-D_h·m·s\
Overquoting is evil! 👎
Re: Testing this command, error when using %P
2Fla$her
Thanks, your method is better. I've learned a lot.
I have a question, why can't "for %f in" be put in param?
Thanks, your method is better. I've learned a lot.
I have a question, why can't "for %f in" be put in param?
Re: Testing this command, error when using %P
2xxxdo1
You're welcome.
This is done to get more text into the command, as %S can take up a lot of space.
You're welcome.
This is done to get more text into the command, as %S can take up a lot of space.
Overquoting is evil! 👎
Re: Testing this command, error when using %P
2Fla$her
Why I put "for %f in" into param, it will fail,
Why I put "for %f in" into param, it will fail,
Re: Testing this command, error when using %P
2Fla$her
Oh, I am blind.
Oh, I am blind.
