Move selected files into newly created subfolder

Features wanted...
Post Reply
mkolaski
Posts: 33
Joined: 16 Jul 2013 20:16
Location: UK

Move selected files into newly created subfolder

Post by mkolaski »

Seeing as how we now have Flatten Folders, thought I should ask if there is a similar way to achieve/automate the opposite? :ninja:

I often have to organise large numbers of files that have been extracted from zip files into various sub-folders and after having selected some files, I'd like to be able to run a function that creates a new folder, after prompting me for a folder name and then moves the files into the newly created sub-folder

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New feature wish: move selected files into newly created

Post by highend »

Code: Select all

    $items = "<get SelectedItemsPathNames |>";
    $dstFolder = input("Enter folder name...", , , , , 250, 150);
    new($dstFolder, "dir");
    moveto $dstFolder, $items, , 2;
Or is this too "highend" as well? :biggrin:
One of my scripts helped you out? Please donate via Paypal

mkolaski
Posts: 33
Joined: 16 Jul 2013 20:16
Location: UK

Re: Move selected files into newly created subfolder

Post by mkolaski »

No. It looks perfect to me (it works too! :appl: ).

Many thanks for this, highend.

RalphM
Posts: 1936
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Move selected files into newly created subfolder

Post by RalphM »

What's wrong with the context menu "Move here to new subfolder" which does exactly the same?
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

mkolaski
Posts: 33
Joined: 16 Jul 2013 20:16
Location: UK

Re: Move selected files into newly created subfolder

Post by mkolaski »

I felt as if the functionality must be there and looked through the menus and stuff but couldn't see it. Being a keyboard junkie, rather than mouse user what I didn't do was to right-click and drag with the mouse. d'oh! :?

Guess I should've RTFM'd!!

Thanks for your help on this guys.

admin
Site Admin
Posts: 60644
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Move selected files into newly created subfolder

Post by admin »

Note that there even is a factory default keyboard shortcut for it:
File | Duplicate | Move Here to New Subfolder... (Ctrl+Shift+X)

:)

mkolaski
Posts: 33
Joined: 16 Jul 2013 20:16
Location: UK

Re: Move selected files into newly created subfolder

Post by mkolaski »

I know. Wish I'd found it sooner!!! :biggrin:

Post Reply