topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 14, 2019, 05:59 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: contextmenu addon feature (alike LevelZap)  (Read 2578 times)

Pbx01

  • Participant
  • Joined in 2018
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
contextmenu addon feature (alike LevelZap)
« on: November 06, 2018, 10:31 AM »
Goodevening  :)

I am using LevelZap (contextmenu addon) and it works fine. Sadly it does work on 1 folder at a time,not able to recursively on all subfolders.
https://archive.codeplex.com/?p=levelzap

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\

There are many small programs/coding snacks on this site so maybe there has been something already that could do the job but I couldn't find it. Otherwise I could use some help.  ;)

/cheers



edit: Just after I made this post I got a suggestion from a friend: Use Total Commander > search > search for TTF ; when found > feed to listbox > select all > move to 'dir'
My humble request for a coding snack for this can be ignored.

Nice site you have :Thmbsup: ,will stay around and try to learn something and maybe I have another question later.
best regards

Ron
« Last Edit: November 06, 2018, 10:50 AM by Pbx01 »

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 3,279
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #1 on: January 16, 2019, 05:04 PM »
Welcome Ron.

I use https://www.lopesoft...nload/filemenu-tools

Some times in the past this program came with adaware , but I am using for years since xp.
Perhaps the spanish option "empaquetar a carpeta" is what you are looking for.
= pack to folder
Best Regards

justW3

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 17
  • What you think I said is probably not what I meant
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #2 on: March 07, 2019, 11:11 AM »
Goodevening  :)

I am using LevelZap (contextmenu addon) and it works fine. Sadly it does work on 1 folder at a time,not able to recursively on all subfolders.
https://archive.codeplex.com/?p=levelzap

etc ...

Ron

I was going to request a program which does exactly what is described here - ie move the contents of a folder to the next higher level folder, and then delete the now empty folder they were previous in - but unfortunately LevelZap seems to have been abandoned several years ago, and does not have an exe file any more on the site suggested above (that I can find). All googled links for LevelZap ultimately lead back to that one site. And whilst there is a "download archive" link there, that zip file contains sourceCode and other such mysterious files, which are complete gobbledygook to me! So, my question is, is there any chance of getting a similar sort of program created? Alternatively, how do I get those LevelZap code files to work as a program within Windows 10 (64-bit)?
Thanks.   :-[

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 10,245
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #3 on: March 07, 2019, 12:21 PM »
Still slammed at work (up until 4 AM last night :( ) but I've downloaded it and will put it in my queue to evaluate if no one gets to it first.  :Thmbsup:

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,532
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #4 on: March 08, 2019, 07:55 AM »
edit: Just after I made this post I got a suggestion from a friend: Use Total Commander
My humble request for a coding snack for this can be ignored.

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 165
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #5 on: March 08, 2019, 08:07 AM »
Total Commander > search > search for TTF ; when found > feed to listbox > select all > move to 'dir'
What an effort...

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

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,532
    • View Profile
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #6 on: March 08, 2019, 07:02 PM »
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
would become
root
a-1
b-1
b-2

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

Compiled from AHK:

« Last Edit: March 10, 2019, 06:37 PM by Curt, Reason: Compiled exe removed »

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,445
  • Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: contextmenu addon feature (alike LevelZap)
« Reply #7 on: March 12, 2019, 11:54 AM »
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\  ...
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.   :(