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.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Add a file prefix with MV

It's not possible with simple operation mask in scripting.

Use WinSCP .NET assembly from some more powerful scripting language (like PowerShell).

Add a file prefix with MV

Is there a way to add a prefix to a file using mv? I'm finding the prefix is substituted for the leading characters rather than appended to the beginning using
mv *.* PREFIX*.*

What occurs is LongerFileName.txt is moved as PREFIXFileName.txt
What I'd like is PREFIXLongerFileName.txt

Any thoughts?