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, 7:41 am
  • 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

Last post Author Topic: DONE: Right Click any file and create New Folder by its Name  (Read 300325 times)

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
DONE: Right Click any file and create New Folder by its Name
« on: September 02, 2009, 02:47 AM »
Dear Intelligent Friends (Atleast Surely intelligent than me because you can program and I cannot)

Can anyone make something so that when a user rightclicks any file he should get an option to create folder by the file's name excluding extension and move that file in the folder after creating the folder...

If an option given to move the no. of files then better and option to remove the hashes and any other special character while creating the folder from the file's name then better as well....

Like in the attachment there are two files selected and if right clicked a single folder should get created by the name and the two files should be moved inside the folder after creation of the folder.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #1 on: September 02, 2009, 07:17 AM »
I have the basics of this done but I need a name for it (and its corresponding context menu entry).  Cranioscopical!  What sayeth thou!   :P

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #2 on: September 02, 2009, 08:22 AM »
You can name it anything according to the context, lets say "File Name Folder Creator" and the context entry can be "Create Folder on File Name..."

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #3 on: September 02, 2009, 09:31 AM »
File to Folder
or
is that too short?

Tom

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #4 on: September 02, 2009, 09:55 AM »
Cranioscopical!  What sayeth thou!
'FiFo' springs to mind, but I bet there exist plenty of those already.
Free Fi Fo Fum is too gigantic  ;)

Tomos' idea sounds good to me.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #5 on: September 02, 2009, 10:19 AM »
File to Folder it is.  Currently I have it auto-creating the folder name if only one file is selected.  If you select more than one file, a small input box pops up asking for a name.  Type in a name, hit OK, the folder is created and all selected files are moved into that folder. Now, the question is this:

Should I make it so the box pops up even for a single file?  I can pre-populate the input box with the filename so all you would have to do is hit OK (or press Enter ).  This way would give you the option of choosing your own folder name to use even with only a single file.  Thoughts?

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #6 on: September 02, 2009, 10:31 AM »
No, not for a single file if you were able to remove hyphens, Hashes and any special character from single File's name, because it increases one key stroke.

Rest depends on you, because you have to see that your program is useful for others also.

N.B.: Sorry forgot to Mention but can you add a Global Keyboard Shortcut to it, so that even a file is selected and if keyboard shortcut pressed then it creates a folder but if it is difficult at this stage then better leave it.

Thanks for all your help.
« Last Edit: September 02, 2009, 10:35 AM by paarkhi »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #7 on: September 02, 2009, 10:43 AM »
No, not for a single file if you were able to remove hyphens, Hashes and any special character from single File's name, because it increases one key stroke.

I'll make the char stripping an option.

N.B.: Sorry forgot to Mention but can you add a Global Keyboard Shortcut to it, so that even a file is selected and if keyboard shortcut pressed then it creates a folder but if it is difficult at this stage then better leave it.

There won't be a hotkey for this since it's a shell extension that's designed to be called from the right-click menu, do its business, and exit.  In other words, it doesn't stay resident in memory.

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #8 on: September 02, 2009, 10:58 AM »
As you wish SIR

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #9 on: September 02, 2009, 11:30 AM »
Download

Give that a shot and let me know how it goes.  I haven't added in the char stripping yet.  I need to get some sleep so I'll pick this up later tonight.

; --------------------------------------------------------------------------
; Installation -------------------------------------------------------------
; --------------------------------------------------------------------------

1) Unpack archive to a folder of your choice.

2) Run the Files2Folder.exe.  A message box will pop up asking you if you
   would like to register the shell extension.  Click yes.

3) A shortcut will also be created that will allow you to unregister the
   shell extension if you wish to do so.
   
; --------------------------------------------------------------------------
; Use ----------------------------------------------------------------------
; --------------------------------------------------------------------------
   
1) After registering the shell extension, you will see a new menu entry in
   your context menu.  The context menu is the menu you see when you right
   click a file or files in a file manager such as Windows Explorer.

2) If you have selected only one file and choose 'Files 2 Folder' from the
   menu, the following will happen:
      1) A folder will be created that is the same name as the file you
         selected.
      2) Your selected file will then be moved into that folder.
     
3) If you have selected multiple files and choose 'Files 2 Folder' from the
   menu, the following will happen:
      1) A box will pop up asking you to enter a folder name.  Enter a name
         and click OK or simply press Enter.
      2) A folder will be created using the name you specified.
      3) All selected files will then be moved into that folder.


tranglos

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,081
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #10 on: September 02, 2009, 12:52 PM »
And just for completeness: TotalCommander users already have that feature. When you press F7 when the cursor is on a filename, TC will offer to create a folder named after that file. (The text is selected, so you can start typing your own if that's not what you want).

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 169
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #11 on: September 02, 2009, 06:51 PM »
Download

Give that a shot and let me know how it goes.  I haven't added in the char stripping yet.  I need to get some sleep so I'll pick this up later tonight.


Hi Skwire.

not registering on my machine Win XP in the right click context menu.
ran the exe and it asked to register in the context menu which I OK'd
doesn't show though.

nogojoe


Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #12 on: September 02, 2009, 07:02 PM »
It should only register for files.  If you have a folder selected, the entry won't show.  Perhaps that is the issue?

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 169
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #13 on: September 03, 2009, 04:12 AM »
It should only register for files.  If you have a folder selected, the entry won't show.  Perhaps that is the issue?

definitely not showing at all . Uninstalled and reset it again even rebooted ......nothing

nogojoe
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #14 on: September 03, 2009, 05:00 AM »
Operating system, please?

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 169
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #15 on: September 03, 2009, 05:43 AM »
Operating system, please?

Win XP3
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #16 on: September 03, 2009, 05:48 AM »
Do you get any hits if you search your registry for this string: a951a7c0-97b1-11de-b5f4-0002a5d5c51b

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #17 on: September 03, 2009, 06:19 AM »
Sorry was out somewhere, so could not download and check and reply but as soon as I was near computer I downloaded it and it is working as Promised, I didn't have any such problem that shell Extension not seen but only one request is that when 2 files selected and a popup box comes then the file name should be pre-populate in the input box,

when popup comes for the filename and if you simply press enter it does nothing...
(A box will pop up asking you to enter a folder name.  Enter a name
         and click OK or simply press Enter.)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #18 on: September 03, 2009, 06:45 AM »
Give this version a try.  Download

Just download and replace the current exe with this one.  No need to re-register the extension.

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #19 on: September 03, 2009, 07:16 AM »
Sorry couldn't find any change at all, I even unregistered the shell extension and reregistered

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #20 on: September 03, 2009, 07:20 AM »
This is another case of something is caching download files.  Try this link:

http://skwire.dcmemb...r/Files2Folder_2.zip

It's the same exact zip as this one:

http://skwire.dcmemb...der/Files2Folder.zip

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #21 on: September 03, 2009, 08:04 AM »
Thank u, Now it works, when 2 or more files selcted and right clicked then a popup comes with a pre-populated name and have to just press Enter, but still the Special character issue remains.

« Last Edit: September 03, 2009, 08:26 AM by paarkhi »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #22 on: September 03, 2009, 08:12 AM »
but still the Special character issue remains
I haven't implemented that yet.  I will need a list of characters you want processed and what you want done with them.

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #23 on: September 03, 2009, 08:22 AM »
Surprisingly when all the files were selected it had taken the name of the shortcut to unregister as a folder name by default in the popup, and it is not that it has taken it because it is the longest of all because I have made 1 more file with a longest and tried..

It is not a problem by any means but I just wanted to let you know how it works.

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #24 on: September 03, 2009, 08:26 AM »
As Far as Special character goes all the allowed special characters in the folder Name except Underscore and Hyphen should be removed and Underscore and hyphen should be given a choice to be replaced by space or removal...

Sorry if Im asking too much, If you have better ideas regarding this then please proceed in that Direction