Welcome Guest.   Make a donation to an author on the site October 23, 2014, 03:03:26 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 5 6 7 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Right Click any file and create New Folder by its Name  (Read 57523 times)
paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« on: September 02, 2009, 02:47:00 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.


* Capture.JPG (10.55 KB, 152x49 - viewed 4286 times.)
Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: September 02, 2009, 07:17:05 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!   tongue
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #2 on: September 02, 2009, 08:22:26 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..."
Logged
tomos
Charter Member
***
Posts: 8,607



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: September 02, 2009, 09:31:22 AM »

File to Folder
or
is that too short?

Logged

Tom
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,182



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: September 02, 2009, 09:55:57 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  Wink

Tomos' idea sounds good to me.
Logged

Chris
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: September 02, 2009, 10:19:35 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?
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: September 02, 2009, 10:31:51 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:22 AM by paarkhi » Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: September 02, 2009, 10:43:57 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.
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: September 02, 2009, 10:58:38 AM »

As you wish SIR
Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: September 02, 2009, 11:30:59 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.

[copy or print]
; --------------------------------------------------------------------------
; 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.

Logged

tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: September 02, 2009, 12:52:12 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).
Logged

nogojoe
Charter Member
***
Posts: 136


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: September 02, 2009, 06:51:41 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


Logged

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
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: September 02, 2009, 07:02:06 PM »

It should only register for files.  If you have a folder selected, the entry won't show.  Perhaps that is the issue?
Logged

nogojoe
Charter Member
***
Posts: 136


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: September 03, 2009, 04:12:00 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
Logged

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
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: September 03, 2009, 05:00:18 AM »

Operating system, please?
Logged

nogojoe
Charter Member
***
Posts: 136


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: September 03, 2009, 05:43:20 AM »

Operating system, please?

Win XP3
Logged

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
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #16 on: September 03, 2009, 05:48:59 AM »

Do you get any hits if you search your registry for this string: a951a7c0-97b1-11de-b5f4-0002a5d5c51b
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #17 on: September 03, 2009, 06:19:30 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.)
Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #18 on: September 03, 2009, 06:45:17 AM »

Give this version a try.  Download

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

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #19 on: September 03, 2009, 07:16:00 AM »

Sorry couldn't find any change at all, I even unregistered the shell extension and reregistered
Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #20 on: September 03, 2009, 07:20:42 AM »

This is another case of something is caching download files.  Try this link:

http://skwire.dcmembers.c...folder/Files2Folder_2.zip

It's the same exact zip as this one:

http://skwire.dcmembers.c...2_folder/Files2Folder.zip
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #21 on: September 03, 2009, 08:04:29 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:40 AM by paarkhi » Logged
skwire
Global Moderator
*****
Posts: 4,114



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #22 on: September 03, 2009, 08:12:11 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.
Logged

paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #23 on: September 03, 2009, 08:22:25 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.


* File2Folder.jpg (42.37 KB, 692x221 - viewed 680 times.)
Logged
paarkhi
Supporting Member
**
Posts: 87


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #24 on: September 03, 2009, 08:26:06 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
Logged
Pages: [1] 2 3 4 5 6 7 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.044s | Server load: 0.04 ]