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.

Options
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)

Options

Topic review

martin

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).
https://winscp.net/eng/docs/library_powershell
Guest

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?