ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE. Software > Coding Snacks

contextmenu addon feature (alike LevelZap)

<< < (2/2)

Total Commander > search > search for TTF ; when found > feed to listbox > select all > move to 'dir'
--- End quote ---
What an effort...

XYplorer: Right click the folder, from the context menu: "Flatten folder", done...

I have done some more modifications to suit my purpose, which was to rename the files to include the folder path it had.

--- End quote ---
would become

--- End quote ---

here's the code for it

--- ---fileselectfolder,MyFold,::{20d04fe0-3aea-1069-a2d8-08002b30309d}
SetWorkingDir, %MyFold%
loop, *.*,0,1
parentpath := RegExReplace(A_LoopFileDir,"\\","-")
;StringReplace, parentpath, A_LoopFileDir, \,-,All
newname = %parentpath%-%A_LoopFileName%
;msgbox %newname%
If a_loopfiledir <>
filemove, %a_loopfilefullpath%,%newname%

loop, %myfold%\*.*,2,1
fileremovedir, %a_loopfilefullpath%,1

exitapp-vixay (July 15, 2009, 05:42 AM)
--- End quote ---

Compiled from AHK:

Where the OP has (my emphasis):
...Example: I have several font files sorted 1 or more font files in 1 matching dir. All are sorted by (sub) categories and sorted by (sub) alfabet. All have different names. I need to get all files from all subfolders into the main folder.
D:\Fonts\misc\categories\alfabet\    > D:\Fonts\  ...
-Pbx01 (November 06, 2018, 10:31 AM)
--- End quote ---
I could be wrong, of course, but I'm having difficulty seeing a driving need for this obsolete Windows File Explorer single-function add-on to continue, given that it has been superseded by the ability to flatten folders to one's heart's desire in modern Windows File Explorer alternatives - e,g. xplorer² (which I have used for ages), or XYplorer (as @highend01 suggests) - i.e., the problem has kinda "gone away".
I suppose the presumption here is based on my experience that, for years, probably no-one needing more complex file management would necessarily be able to rely on using Windows File Explorer for it anyway.   :(

Flatten Folder Menu v0.1.1

Adds "Flatten" context menu to folders in Windows Explorer.
-publicdomain (September 26, 2020, 06:58 PM)
--- End quote ---

Flatten Folder Menu v0.1.1

Adds "Flatten" context menu to folders in Windows Explorer.
-publicdomain (September 26, 2020, 06:58 PM)
--- End quote ---

-tomos (September 27, 2020, 03:59 AM)
--- End quote ---
Thank you so much for pointing me to 'Flatten Folder Menu'.
It does exactly what I have needed all this time (without the convoluted faff and clunkiness of some of the alternatives  :P). 
much appreciated  :Thmbsup:


[0] Message Index

[*] Previous page

Go to full version