topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 4:18 pm
  • Proudly celebrating 15+ 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: Flatten Folder Menu - Adds "Flatten" context menu to folders (v0.2.0)  (Read 7408 times)

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Flatten Folder Menu

Adds "Flatten" context menu to folders in Windows Explorer.

FlattenFolderMenu_v0-1-0.png

⬇️ Downloads:





Made for: nkormanik, Pbx01, justW3.

Original thread: contextmenu addon feature (alike LevelZap)

Usage video:


Source code: Flatten folder menu @ GitHub

Targets Microsoft .NET framework v4.5

v0.2.0:
  • Add AlphaFS library for long path support.

v0.1.1:
  • Add/Remove via button.
  • Detects current active status.
  • One-click menu operation.

Day #106, Week #15 @ April 16, 2023

==========

Release supporters:

  • Jesse Reichler (A.K.A. Mouser from DonationCoder.com)
  • Max P.
  • Kathryn S.
  • Cranioscopical
  • Tomos
  • luvnbeast
  • nkormanik
  • Will you be our next supporter? :)
💗 Support:

One-time Paypal @ https://www.paypal.com/paypalme/victorvls
Our Patreon page @ www.patreon.com/publicdomain.
Email/Paypal: [email protected]

Thanks & keep on rocking! 👍
Vic
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: May 09, 2023, 07:00 PM by publicdomain »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #1 on: September 27, 2020, 04:00 AM »
 :Thmbsup:
For completeness I added a link to here in the other thread
Tom

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #2 on: September 27, 2020, 07:49 AM »
Thank you Tom! Appreciated :-*

:Thmbsup:
For completeness I added a link to here in the other thread
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #3 on: November 10, 2021, 04:08 AM »
Victor, three questions:

1.  How does Flatten Folder deal with same-name files?

2.  What is the upper limit number of files that can be processed that have the same name?

3.  What is the upper limit number of total files that can be processed?

Thanks!

Nicholas Kormanik

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #4 on: November 16, 2021, 04:43 AM »
Hello & good day! There you go:

1.  How does Flatten Folder deal with same-name files?

Renames by adding a string based on epoch + file index in the batch.

2.  What is the upper limit number of files that can be processed that have the same name?

As many as needed.

3.  What is the upper limit number of total files that can be processed?

No upper limit! --As much as your computer can handle ;)

Cheers!  :Thmbsup:
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #5 on: November 16, 2021, 05:20 PM »
This is golden, Vic!  I've used it now many times.  Super fast.  Feedback when finished.

Used another, more kludgy, method for years.  And your solution is vastly better.

Hope lots of people out there somehow come to learn of your gem.

Thanks!!

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #6 on: November 16, 2021, 11:16 PM »
One possible enhancement request, Vic!:

If a directory tree to be flattened has a branch that exceeds 260 characters, Flatten falters.  A polite message is popped onscreen to that effect.

Then I have to try to shorten said path, and/or filename.  If user does that, Flatten fulfills flawlessly.

By the way, I've set my 'registry' to overlook long path/filenames.

Flatten still chokes... at least in perhaps a pre-do check... on long path+filename.

So, the request is, any other workaround besides manually trimming the troublemakers?

Thanks again!!



publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #7 on: November 20, 2021, 03:09 PM »
Thanks for your kind words of appreciation Nick :-*

So, the request is, any other workaround besides manually trimming the troublemakers?

Yes. It should be possible to catch & fix those automatically.

Cheers!
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: February 27, 2023, 01:39 PM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #8 on: November 22, 2021, 11:57 PM »
Vic!, putting up another request.  In the new requests section....

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #9 on: November 29, 2021, 11:26 AM »
Vic!, putting up another request.  In the new requests section....

Hi Nick! About to be released, along with BGGFetch.
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #10 on: November 29, 2021, 06:06 PM »
Recently flattened a rather large hierarchy of files using Vic's program here.

Over 48,000 files.

Flatten did the job wonderfully!

justW3

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 19
  • What you think I said is probably not what I meant
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #11 on: January 05, 2022, 06:35 AM »
Made for Pbx01, justW3.

thank you so much for creating this. it's so helpful and works just as I need it to. waited a looog time for someone to meet this need but well worth the wait. perfect!  :-*
« Last Edit: February 19, 2023, 07:54 PM by Deozaan, Reason: remove irrelevant quoted content »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #12 on: February 19, 2023, 04:51 PM »
Enhancement Requests (again):

1.  Long path issues still a big problem.  Preferred would be to deal with as many files as possible before quitting when finding that one or more files has a path length problem.  Seems presently that FFM looks through folder to be flattened, and gives up as soon as a long folder/file path length issue is noticed.  Please, just keep chugging on, and tell user at the very end that long folder/file path length issue was observed, and couldn't flatten just those files, but everything else was a success.

2.  Receive error message, Can't flatten if file already exists.  Please simply add a number suffix to any files that same-named file already exist.  This was supposedly already the case, however.  Maybe I'm missing something.

Thanks Victor!


publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #13 on: February 19, 2023, 07:49 PM »
Roger that Nick! :)
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: April 23, 2023, 07:02 PM by publicdomain »

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #14 on: February 20, 2023, 03:28 AM »
I was unaware of this project, but found a bug for you to fix :D
Your Tool is unable to remove folders that have flags set for readonly and crash.  :o
Your Tool is unable to register context menu when it was copied to a windows protected folder like \Program Files\
(I mean, it does lie to me, it say it can not register but infact it does register, error pops up because it can not write an icon file)
« Last Edit: February 20, 2023, 03:38 AM by KodeZwerg »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Flatten Folder Menu v0.1.1
« Reply #15 on: February 20, 2023, 09:11 PM »
I was unaware of this project, but found a bug for you to fix :D

Thanks for your report :) Bug fixes on the way  :Thmbsup:
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
First post was updated to reflect Flatten Folder Menu v0.2.0:

⬇️ Downloads:

My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com