Welcome Guest.   Make a donation to an author on the site August 30, 2014, 07:23:46 PM  *

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 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Create a containing folder by right clicking on a file  (Read 53160 times)
clif_notes
Charter Honorary Member
***
Posts: 198


Clif Notes Newsletter

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: July 26, 2007, 10:12:46 PM »

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.com/c...es/WhatDoYouNeed20070715/
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
Logged


Devoted to promoting freeware and free information
mouser
First Author
Administrator
*****
Posts: 33,288



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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?
Logged
clif_notes
Charter Honorary Member
***
Posts: 198


Clif Notes Newsletter

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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.
Logged


Devoted to promoting freeware and free information
mouser
First Author
Administrator
*****
Posts: 33,288



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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).
Logged
lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.. smiley also, *cough* *cough* if only this project had taken off.. undecided

http://www.donationcoder....rum/index.php?topic=648.0
Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: July 28, 2007, 03:39:35 AM »

i'd also like to see this done.
Logged
AbteriX
Charter Honorary Member
***
Posts: 1,049


Member #520

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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  cheesy
Logged

Greetings, Stefan.
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
ljbirns
Charter Member
***
Posts: 229


see users location on a map View Profile Give some DonationCredits to this forum member
« 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.
Logged

Lew
nite_monkey
Member
**
Posts: 689


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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?
Logged

[Insert really cool signature here]
AbteriX
Charter Honorary Member
***
Posts: 1,049


Member #520

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.donationcoder....ic=1996.msg13500#msg13500
« Last Edit: July 28, 2007, 01:17:02 PM by AbteriX » Logged

Greetings, Stefan.
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 » Logged
ljbirns
Charter Member
***
Posts: 229


see users location on a map View Profile Give some DonationCredits to this forum member
« 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
Logged

Lew
tomos
Charter Member
***
Posts: 8,475



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: July 28, 2007, 12:17:39 PM »



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
Logged

Tom
AbteriX
Charter Honorary Member
***
Posts: 1,049


Member #520

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: July 28, 2007, 01:34:58 PM »

Lew, i edited my post above.
Thanks tomos for helping out.
Logged

Greetings, Stefan.
ljbirns
Charter Member
***
Posts: 229


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: July 28, 2007, 01:45:31 PM »

AbteriX and Tomos

Thanks for you help.



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

Lew
Logged

Lew
steeladept
Supporting Member
**
Posts: 1,056



Fettucini alfredo is macaroni & cheese for adults

see users location on a map View Profile Give some DonationCredits to this forum member
« 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.
Logged
ak_
Supporting Member
**
Posts: 223


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 Kiss), 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_ » Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #18 on: July 28, 2007, 03:40:28 PM »

the ahk and fast explorer combination sounds like a solution to me.
Logged
ak_
Supporting Member
**
Posts: 223


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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).
Logged

ak_
Supporting Member
**
Posts: 223


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #20 on: July 28, 2007, 07:11:24 PM »

Here it is : FileNanny

[copy or print]
;; 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_ » Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 Grin.

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.

Logged
AndyM
Charter Member
***
Posts: 616


see users location on a map View Profile Give some DonationCredits to this forum member
« 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.


=====================================
Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #23 on: July 29, 2007, 10:29:27 AM »

that's fantastic information, AndyM.
Logged
AndyM
Charter Member
***
Posts: 616


see users location on a map View Profile Give some DonationCredits to this forum member
« 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.
Logged
Pages: [1] 2 3 4 5 6 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.05s | Server load: 0.08 ]