Website Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • August 30, 2015, 01:00:46 PM
  • Proudly celebrating 10 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: IDEA: Create a containing folder by right clicking on a file  (Read 57791 times)

clif_notes

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 199
  • Clif Notes Newsletter
    • View Profile
    • Clif Notes Newsletter
    • Donate to Member
Hi folks,

In my newsletter, I have a section called "What do you want?". Often I can find an existing program that fits the need, and more often others chime in with plenty of ideas.

Here is a request that I figured would be perfect as a coding snack and additionally would make my readers familiar with your services in this forum.

Quote
Marlene O wrote the following:
http://www.haloscan....atDoYouNeed20070715/
I would really like a little progie that would make a new folder for a file. For instance if I have a zip file called reader.zip, if I could right click it and have the option to make a folder called reader that I could put it in. I get so sick of right clicking and choosing new then folder then typing in reader. Sounds trivial but it is so annoying when you have fifty files that you want to make a separate folder for each file
folder called

=============

In this case, I don't believe she is asking to have the program unzip the file into a folder. That is already available to most folks.

I believe she merely wants a folder to store it in. Perhaps the program could also move the file into the containing folder. Another idea might allow selecting more than one file and using those names to create an equal number of folders to contain the files.

Thanks to all.


Clif
"the best things in life are  still free"
http://freewarewiki.com/NewsLetters

Devoted to promoting freeware and free information

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,926
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #1 on: July 26, 2007, 11:00:12 PM »
Yes this is a very good idea, i could use this as well..

So, right click on a FILE, and say "Make Folder and put file(s) in it.."
and it would make a new folder (maybe just make a folder with same name as program minus extension, OR pop up a dialog with default name being this), and then move the file into that folder.  An option to add the date to the folder might be nice too.

Does anyone know of such a program already, or if not care to make one?

clif_notes

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 199
  • Clif Notes Newsletter
    • View Profile
    • Clif Notes Newsletter
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #2 on: July 27, 2007, 11:24:11 PM »
Does anyone know of such a program already, or if not care to make one?

I did look into this briefly. There are many context menu extension tools. Many will allow you to add new folders from the right click menu in Explorer. I couldn't find any that worked like Marlene wanted it to.

Thanks for the support Mouser.

Devoted to promoting freeware and free information

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,926
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #3 on: July 27, 2007, 11:45:45 PM »
let's get this made for cliff's gang!
would be a great learning experience as well for a coder (learning how to create a context menu extension).

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,216
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #4 on: July 28, 2007, 03:01:51 AM »
great idea! i could use a feature like this, esp when going thru downloaded files.. :) also, *cough* *cough* if only this project had taken off.. :-\

http://www.donationc...ndex.php?topic=648.0

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #5 on: July 28, 2007, 03:39:35 AM »
i'd also like to see this done.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,085
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #6 on: July 28, 2007, 07:08:37 AM »
I don't get the point.

1)
There are archivers who create folders
for all selected archives
and unpack the archive in this folders at once.
But didn't move the archive itself to this folders....if this is the point i don't get.

2)
Filemanagers like TotalCommander and AltapSalamander can be set up to use even archivers who don't have this feature.

3)
Batch or AHK in coupling with an command line archiver and assign in the registry with archiver-extension?

4)
Isn't this an issue for "Drag&Drop Robot" ?

Thanks for enlighting me  :D

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #7 on: July 28, 2007, 07:20:59 AM »
it depends on which version of the original request you want to follow.

the extract create folder method is common as pointed out by Clif.

mouser describes how it would work - you have a file, not an archive, and you want the file to be placed into an automatically named new folder - all done with a simple right click menu selection on the file.

so, instead of doing this.

1. create new folder.

2. rename new folder.

3. put file into newly created folder.

(4. perhaps open new created folder to reveal file inside it.)

you do this instead...

1. right click on file.

2. select the 'put file in new folder' option from the menu.

at least, that's how i understand the process.

ljbirns

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 229
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #8 on: July 28, 2007, 09:21:03 AM »
I think Context Magic v1.1.b5 (Free Edition) pretty much does what is being asked here.
 Right click on the file.  Choose  **  move to **
A GUI opens and asks where ?  Click   NEW FOLDER   name it   and your file is move to new folder.

   Web site    http://www.contextmagic.com/

Lew

I would have attached screenshots but I can't figure out how.
Lew

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 711
    • View Profile
    • Just Plain Super
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #9 on: July 28, 2007, 10:55:14 AM »
I must not be reading this right. He wants an AHK script that will make a folder for him that he can then extract his files to? If so, I haven't found an archive program yet that doesn't have the option to extract to, which makes a folder and extracts the files to it, so can someone please explain to me exactly what he is wanting?
[Insert really cool signature here]

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,085
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #10 on: July 28, 2007, 10:55:40 AM »
I would have attached screenshots but I can't figure out how.

EDIT: i added an short how to at the introducing thread of this feature at
http://www.donationc...96.msg13500#msg13500
« Last Edit: July 28, 2007, 01:17:02 PM by AbteriX »

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #11 on: July 28, 2007, 11:57:21 AM »
Quote
So, right click on a FILE, and say "Make Folder and put file(s) in it.."
and it would make a new folder (maybe just make a folder with same name as program minus extension, OR pop up a dialog with default name being this), and then move the file into that folder.  An option to add the date to the folder might be nice too.

not sure how clear that needs to be - it has nothing to do with zip files or any other archives - zip was just a missleading example for the extension in the original request.

ljbirns, contextmagic sounds like it's almost there. it doesn't do exactly what mouser describes - the crucial thing to me is the number of steps and the autonaming of the folder. my understanding is that the idea is to create a containing folder for a specific file (or set of files) that is at the same level of the file - and it's all done with the minimum number of clicks. contextmagic is perhaps close enough - i think i'll try it.
« Last Edit: July 28, 2007, 12:00:20 PM by nudone »

ljbirns

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 229
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #12 on: July 28, 2007, 12:06:18 PM »
AbteriX

Thanks.  It's the " Full Post " mode I didn't get.  Still don't for that matter.  Where do i go for Full Post ?  I appreciate your help

Lew
Lew

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,495
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #13 on: July 28, 2007, 12:17:39 PM »
Reply.png

use this reply as opposed to "quick reply"

alternatively,
if you start in Quick Reply, click on Preview - that will bring you into "full" mode
Tom

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,085
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #14 on: July 28, 2007, 01:34:58 PM »
Lew, i edited my post above.
Thanks tomos for helping out.

ljbirns

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 229
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #15 on: July 28, 2007, 01:45:31 PM »
AbteriX and Tomos

Thanks for you help.
ScreenShot016.png
ScreenShot017.png

I hope I got it right and am not just wasting time from the real issue of this thread.

Lew
Lew

steeladept

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,059
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #16 on: July 28, 2007, 03:07:07 PM »
Going back to this thread, it looks as though ALZip does this in version 7, which should be out very soon.

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #17 on: July 28, 2007, 03:25:08 PM »
It would be quite easy to make an AHK script that takes the file's name and folder, create a folder with the same name and move the file to this folder. The only "problem" would be to add the context menu item. I use fast explorer for this kind of stuff (until ContextMenu Commander is released :-*), for example i have a "ftp" sub-menu with several ftp locations i often use.

So if i had to face this kind of situation, i'd use ahk+fast explorer but i guess it's not user-friendly.
« Last Edit: July 28, 2007, 03:27:27 PM by ak_ »

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #18 on: July 28, 2007, 03:40:28 PM »
the ahk and fast explorer combination sounds like a solution to me.

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #19 on: July 28, 2007, 06:10:30 PM »
It's a solution, but then the user has to install Fast Explorer, use it to create the correct context menu entry etc.

Anyway, i'll try to work it out until someone comes with a better solution (a single program).

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #20 on: July 28, 2007, 07:11:24 PM »
Here it is : FileNanny

Code: [Select]
;; FileNanny
;; "Go to your room !"
;; by ak
Loop, %0% {
param := %A_Index%
SplitPath param, fileName, dirName
StringSplit rawName, fileName, "."
dirToCreate = %dirName%\%rawName1%
FileCreateDir %dirToCreate%
FileMove %param%, %dirToCreate%
}

Actually, a nice solution is to put a shortcut to fileNanny.exe in the sendTo folder. It works with multiple files.

I quickly created an icon because i don't like software (even crappy little stuff like that) without icon, but i'm not sure the picture is very obvious (i hate using the mouse).
« Last Edit: October 23, 2007, 11:48:33 AM by ak_ »

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #21 on: July 29, 2007, 12:31:18 AM »
that's simply great, ak_, the send to method is good enough and the icon is a nice touch - with the dummy ;D.

is it too much to ask how you would use fast explorer instead of the send to method. maybe a screengrab of the settings would be enough???

perhaps someone will be able to modify your script to include the options mouser suggested, like the add date and choose name or type new name.


AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #22 on: July 29, 2007, 10:17:58 AM »

Actually, a nice solution is to put a shortcut to fileNanny.exe in the sendTo folder. It works with multiple files.



You can add right-click menu choices to all file objects in:

HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell

Add a subkey whose string becomes the menu selection text.  A subkey to
that key called "command" contains a string which is a command line.

So...

HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\MoveToContaining

where the string is:

Mo&ve to CF

and

HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\MoveToContaining\command

where the string in "command" is:

"C:\wherever\Filenanny.exe" "%1"

will make a context menu selection called "Move to CF" (the "v" is
underlined and is a hotkey because of the preceding "&").  When you
select it, Filenanny.exe will run on the selected files.


=====================================


You could also write a batch file to do what Filenanny.exe does, and
put that in the "command" string instead.  I have several in my
context menu to quickly make a sequential backup, clear archive bits,
etc.

Here are some useful batch parameters to expand %1-%9:

%~1 Expands %1 and removes any surrounding quotation marks ("").
%~f1 Expands %1 to a fully qualified path name.
%~d1 Expands %1 to a drive letter. 
%~p1 Expands %1 to a path.
%~n1 Expands %1 to a file name. 
%~x1 Expands %1 to a file extension.
%~s1 Expanded path contains short names only.
%~a1 Expands %1 to file attributes.
%~t1 Expands %1 to date and time of file.
%~z1 Expands %1 to size of file.

Examples of possible combinations of modifiers and
qualifiers to get compound results:

%~dp1 Expands %1 to a drive letter and path.
%~nx1 Expands %1 to a file name and extension.
%~dp$PATH:1 Searches the directories listed in the PATH environment
            variable for %1 and expands to the drive letter and path
            of the first one found.
%~ftza1 Expands %1 to a dir-like output line.


Don't forget %DATE%, whose format depends on your system settings.  I
use this in file archive naming.  By having my system date read
YYYY-MM-DD, file backups named
OriginalFilename.%DATE%.OrigninalExtension will automatically sort by
Name/BackupDate.


=====================================

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #23 on: July 29, 2007, 10:29:27 AM »
that's fantastic information, AndyM.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Create a containing folder by right clicking on a file
« Reply #24 on: July 29, 2007, 10:56:58 AM »
I forgot to mention that HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell
also affects .lnk files, so these menu choices are also available on the right-click menu for shortcuts, where they are sometimes useless.  So it's not a perfect solution.