- martin
Post a reply
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Topic review
- FoTo50
custom command for duplicating files
Hi all,
many times, I need to copy remote files with the attributes " -r --no-preserve=mode,ownership" to keep the target ownership and rights in case it exists. The default duplicate command does not provide these so I tried to create some custom command in WinSCP like:
cp -r --no-preserve=mode,ownership ! !?Target:?!/!
Target I wanted to fill with the current path by default, but obviously, this fails here as this is also the char for the prompt ending. How do I create this custom command correct?
I also first tried to "!&" instead of ! for the source to be able to copy multiple files, but then got that error "cannot combine ..."??
Any help would be very much appreciated
Greetz
many times, I need to copy remote files with the attributes " -r --no-preserve=mode,ownership" to keep the target ownership and rights in case it exists. The default duplicate command does not provide these so I tried to create some custom command in WinSCP like:
cp -r --no-preserve=mode,ownership ! !?Target:?!/!
Target I wanted to fill with the current path by default, but obviously, this fails here as this is also the char for the prompt ending. How do I create this custom command correct?
I also first tried to "!&" instead of ! for the source to be able to copy multiple files, but then got that error "cannot combine ..."??
Any help would be very much appreciated
Greetz