Post a reply

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

I'm no *nix expert, so there can be a better solution, but should should do:

filename="!" && mkdir "${filename%.*}" && mv "!" "${filename%.*}"
nickodemos

Sorry I should have thought to put that in.

Yes. On the remote folder I would right click on a file to bring up the context menu and have an option under 'Custom File Commands' that would create a folder and move the file I clicked on into the newly created folder: root/BSD.iso >> root/BSD.iso/BSD.iso.

Only thing better would being able to remove the extension in the folder.

root/BSD.iso >> root/BSD/BSD.iso.
martin

Re: Create folder from file name

"click" in WinSCP GUI? In panel with a remote folder?
nickodemos

Create folder from file name

Was wondering if it would be possible to have a script that would create folder based on the file name.

EG I would click on BSD.iso and choose the script to create a folder in current folder with the name BSD and move the BSD.iso into the newly created BSD folder.

I did a quick search and found nothing asking this.