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

DonationCoder.com Software > Coding Snacks

contextmenu addon feature (alike LevelZap)

<< < (2/2)

highend01:
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...

Curt:
I have done some more modifications to suit my purpose, which was to rename the files to include the folder path it had.
i.e.
root
 a
   1
 b
   1
   2

--- End quote ---
would become
root
a-1
b-1
b-2

--- End quote ---

here's the code for it
FlattenWithFolderNames.ahk

--- ---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:

IainB:
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.   :(

Navigation

[0] Message Index

[*] Previous page

Go to full version