topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday December 5, 2024, 7:44 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

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

Rockets

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 57
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #175 on: November 06, 2014, 05:45 PM »
Superb, I have 2 more suggestions:
3. Remember the last text in the text field (make it as option in ini probably?)
4. If you type in the text field, select first radio button automatically

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #176 on: November 06, 2014, 06:36 PM »
Website | Download
v1.1.7 - 2014-11-06
    + The first method's edit field contents are now saved.  (Thanks, Rockets)
    + Typing into the first method's edit field automatically sets the first
      method's radio button.  (Thanks, Rockets)

xd1986k

  • Participant
  • Joined in 2014
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #177 on: November 15, 2014, 10:26 AM »
Hello. Would it be possible to add a feature to find common text between files and use that as an name for the folder?
eg we have  files
[Chemistry] Workbook 01.rar
[Chemistry] Workbook 02.rar
[Chemistry] Workbook 03.rar
So the new folder is named [Chemistry] Workbook.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #178 on: November 15, 2014, 11:21 AM »
personally i think xd's idea is a nice one and I'd like to have a shell extension that could do that.  select a bunch of files, right-click, and it finds the common prefix (or suffix), makes a folder based on it, and moves files into it.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #179 on: November 15, 2014, 09:48 PM »
Hi, xd1986k, and welcome to the DonationCoder site.   :)

Hello. Would it be possible to add a feature to find common text between files and use that as an name for the folder?
eg we have  files
[Chemistry] Workbook 01.rar
[Chemistry] Workbook 02.rar
[Chemistry] Workbook 03.rar
So the new folder is named [Chemistry] Workbook.

This is doable.  However, in your example, technically, the common text would be "[Chemistry] Workbook 0" right?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #180 on: November 15, 2014, 09:57 PM »
Ah that's an interesting point..
Technically you are right.

I guess it would be nice to (or have options to):
1. trim any digits off the end of the common prefix found
2. and/or not include any partial word (unless it is the FIRST word)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #181 on: November 15, 2014, 10:48 PM »
I guess it would be nice to (or have options to):
1. trim any digits off the end of the common prefix found
2. and/or not include any partial word (unless it is the FIRST word)

And the hairiness starts...   :-\

Rockets

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 57
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #182 on: November 19, 2014, 08:13 PM »
I think it is better to add a new option to ini file - autofill first field from any filename. It is much easier to edit autofilled value, than to write AI for this simple app.

Rockets

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 57
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #183 on: November 20, 2014, 09:05 AM »
One more thought:

You have an option called "Method=". You can code "Method=0" or "Method=-1" to enable autofill and disable "FolderName="

Rockets

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 57
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #184 on: April 05, 2015, 07:43 AM »
And 1 more suggestion:
autopaste a new name from a clipboard (and make it optional in ini)

zramdt

  • Participant
  • Joined in 2015
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #185 on: June 09, 2015, 06:42 PM »
Hello !

Thank for your App ! Very helpfull !
I have the following question :
I created hundred of folder with Files 2 Folder (great app.) but they all created with the current date.
Is there a way to configure the program (config.ini ??) so that folders can be created with the source files date ?
Thanks in advance for reply.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #186 on: June 10, 2015, 04:37 AM »
I created hundred of folder with Files 2 Folder (great app.) but they all created with the current date.
Is there a way to configure the program (config.ini ??) so that folders can be created with the source files date ?

just in case Skwire cannot help directly, here is a possible solution:
DONE: Change (sub) folder(s) date based on newest/oldest file in the folder
Tom

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #187 on: June 10, 2015, 09:48 AM »
Is there a way to configure the program (config.ini ??) so that folders can be created with the source files date ?

Hi, zramdt, and welcome to the DonationCoder site.  In regards to your question, no, there currently is no way to make Files 2 Folder work that way.  However, please do check out the application that tomos referred to as I think it's designed to do what you want.

just in case Skwire cannot help directly, here is a possible solution:
DONE: Change (sub) folder(s) date based on newest/oldest file in the folder

I was going to suggest that program, too, tomos.

zramdt

  • Participant
  • Joined in 2015
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #188 on: June 10, 2015, 03:32 PM »
Hey guys !

Thank you very much for your help and the kick answer.
It work exactly like excepted !

- Files2Folder to get the directories
- SetFolDate for adjusting date of each folder

:o)


hairypaulsack

  • Participant
  • Joined in 2015
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #189 on: July 31, 2015, 04:22 AM »
Hey thanks for the awesome program. I use it everyday.
First of all wanted to say that it works great but there are a few hiccups/suggestion.

1. I manually entered a string value with a location to my Files2Folder.exe to use it's icon. Looks more nice in the context menu. Maybe ask users upon installation?

2. Doesn't work with items on my desktop. Actually some weird shit is happening. I'll provide two examples, both from icons on my desktop. The two programs I tested right now (though I have tried this many times in the past) were WinDriStat and OpenIV [Drive space tree image viewer and GTAIV and V modding utility]
2.A. The WinDirStat made an empty folder in C:\Users\%USERPROFILE%\AppData\Local\VirtualStore\Program Files (x86) and did not take or make a copy of the file.
2B. The OpenIV app made it's way to C:\Users\%USERPROFILE%\AppData\Local\New Technology Studio\Apps and made a copy of the program, placed it in a folder of the name (which is kinda properly working) and changed the location in the target value of the original desired item from the desktop.

May this have something to do with them being shortcuts?

3. Finally I'm having issues in protected areas. I can't use the program in say Program Files. I assume this is due to UAC but I edited the properties of the original location of Files2Folder.exe and told it to run as administrator without any success. Trying to run it elevated only produced errors in an inability to locate the Files2Folder.exe item. I tried to run Files2Folders in a command prompt and didn't have any progress. Process Monitor showed the location of Files2Folder.exe with the targeted filed behind it as the command that was run but I guess there are trade secrets lol? Is this code opensource? I'm learning and would love a smaller program to learn a little. I'm at a dead end with Process Monitor and regedit trying to see how the program works.

Thanks
Paul

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #190 on: August 01, 2015, 03:35 PM »
Hi, Paul, and welcome to the DonationCoder site.   :Thmbsup:

Hey thanks for the awesome program. I use it everyday.
-hairypaulsack (July 31, 2015, 04:22 AM)

You're welcome; I'm glad you find it useful.

1. I manually entered a string value with a location to my Files2Folder.exe to use it's icon. Looks more nice in the context menu. Maybe ask users upon installation?
-hairypaulsack (July 31, 2015, 04:22 AM)

I'll consider this.  Which hive/key/value did you add?

2. Doesn't work with items on my desktop.
[...]
May this have something to do with them being shortcuts?
-hairypaulsack (July 31, 2015, 04:22 AM)

Correct, the program doesn't work with .LNK or .URL files.  However, for me at least, regular items seem to work fine on my desktop.  Keep in mind that I have UAC disabled on my computer.

3. Finally I'm having issues in protected areas. I can't use the program in say Program Files. I assume this is due to UAC
-hairypaulsack (July 31, 2015, 04:22 AM)

It's almost certainly due to UAC.  I know it's not much help, but the app works fine for me in Program Files.  Again, though, I have UAC disabled.  Please keep in mind that F2F was originally developed in 2009 on XP and, due to the massive shell code changes after XP, I'm surprised it works at all under Windows Vista/7/8/10.

web_stalker

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #191 on: August 17, 2015, 05:12 AM »
Hi,

Is it possible to use regexp to fill the folder name field? To reuse xd1986k's eg.,
[Chemistry] Workbook 01.rar
[Chemistry] Workbook 02.rar
[Chemistry] Workbook 03.rar

I could search for "^(.*) \d+" and name the folder as "$1". Obviously, it would require 2 boxes - first to search with regexp and the second for the folder name and if the pattern could be saved for future reuse, it will be a bonus. Hope you consider it. Thanks.

Paul!!!

  • Participant
  • Joined in 2015
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #192 on: October 19, 2015, 09:59 AM »
I am running XP Pro SP3.  I downloaded and installed file 2 folder.  "Files 2 Folder" shows up in my context menu so it looks like the install went smoothly but when I click on it nothing happens.   :(

Tried several times both over a network and locally. 
I tried a single file and multiple files.  Even with multiple files nothing happens.  The dialog box does not come up.

I closed down Windows Explorer and reopened it.

Still nothing.

I am logged in with my account that has administrator rights.

Anyone know what might be the issue?  I am quite puzzled.


skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #193 on: October 19, 2015, 10:03 AM »
Hi, Paul!!!, and welcome to the DonationCoder site.   :)

I am running XP Pro SP3.  I downloaded and installed file 2 folder.  "Files 2 Folder" shows up in my context menu so it looks like the install went smoothly but when I click on it nothing happens.

Did you unpack the contents of the zip file to its own folder before running Files2Folder.exe?  Or did you click and run it from within the zip file?

Paul!!!

  • Participant
  • Joined in 2015
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #194 on: October 19, 2015, 10:18 AM »
I ran it from with the zip file.   Would that make a difference?   I figured because it shows up in the context menu that the install part was ok.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #195 on: October 19, 2015, 10:24 AM »
I ran it from with the zip file.   Would that make a difference?   I figured because it shows up in the context menu that the install part was ok.

Yep, that'll make a difference.  Try this, please:

  • Download this: http://skwire.dcmemb...folder/Unreg_F2F.zip
  • Extract that zip into some folder.  Right-click the Unregister_F2F_Shell_Extension.exe file and choose Run As Administrator.  That should unregister the shell extension.
  • Put your Files2Folder.exe file where you want and run it with Administrator rights as well.  You MUST run it with Administrator rights. It should ask you if you want to register the shell extension.
  • Now try right-clicking a file now and let me know.

Paul!!!

  • Participant
  • Joined in 2015
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #196 on: October 19, 2015, 10:37 AM »
YES  :Thmbsup:  That was it.  Thank you!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #197 on: October 19, 2015, 10:38 AM »
YES  :Thmbsup:  That was it.  Thank you!

You're welcome.  =]

hairypaulsack

  • Participant
  • Joined in 2015
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #198 on: October 30, 2015, 03:08 AM »
1. I manually entered a string value with a location to my Files2Folder.exe to use it's icon. Looks more nice in the context menu. Maybe ask users upon installation?
-hairypaulsack (July 31, 2015, 04:22 AM)

I'll consider this.  Which hive/key/value did you add?



I just went to 'HKCR\*\shell\Files 2 Folder' key (the folder; drop targets  and added a new string value with NAME = 'Icon'  and 'C:\%USERPROFILE%\[ Alt. Program Files ]\Files 2 Folder\Files2Folder.exe,0' as the DATA.

Just like you can throw a string value with 'Extended' to make any \shell context menu item show up on the extended (SHIFT + RIGHT CLICK) context menu \shellex, you can add an Icon string value with Data pointing to your choice of icon just like when doing so when right clicking on the properties of a shortcut.

SYNTAX
: "Icon"="\"C:\\LOCATION\\TO\\PARENT\\DIRECTORY\\OF\\PROGRAM DIRECTORY\\EXECUTABLE WITH DESIRED ICON.exe\""
For some reason it will only take the this default icon, at least on my computer. Normally it follows default icon syntax parameters by allowing you to pick from any of the multiple icons that are usually made available with each .exe file.

EX:
"Icon"="\"C:\Program Files\Sublime Text 3\sublime_text.exe,0
You can see I'm using the 0th icon from the sublime file, the initial icon. If you used the SHELL32.DLL icon set by pointing at '%SystemRoot%\system32\SHELL32.dll' there are like 100 icons packed in this file. I'm sure you know most of this it's just cool stuff for anyone reading.

---------------------------
Here is my exported key
----------------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Files 2 Folder]
"Icon"="\"C:\\Users\\%USERPROFILE%\\[ Alt. Program Files ]\\Files 2 Folder\\Files2Folder.exe\""
[HKEY_CLASSES_ROOT\*\shell\Files 2 Folder\DropTarget]
"CLSID"="{a951a7c0-97b1-11de-b5f4-0002a5d5c51b}"

There are plenty of programs that do this for you and much more, but what is driving me nuts is HOW DO YOU MAKE A FREAKING DIVIDER???? All I know is another tag just like 'Icon' and 'Extended' to make it show it the top where AMD CCC hangs, the middle, or the bottom where Gadgets, Display Settings, Person.... - respectively TOP MIDDLE and BOTTOM


« Last Edit: October 31, 2015, 06:34 AM by hairypaulsack »

hairypaulsack

  • Participant
  • Joined in 2015
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: DONE: Right Click any file and create New Folder by its Name
« Reply #199 on: October 30, 2015, 03:15 AM »
IT IS A NIGHTMARE!!! MY FILES2FOLDER ISN'T WORKING - WAHHH WAHHH WHHHH

I tried removing it (elevated) and adding it again..
cleaning out every reference to 'files 2 folder' and the CLSID= "{a951a7c0-97b1-11de-b5f4-0002a5d5c51b}"

No luck. Here is error...