DonationCoder.com Software > Post New Requests Here
IDEA: Create a containing folder by right clicking on a file
tomg:
tomg> FileNanny already converts underscores and minus signs etc to spaces (just launch the FileNanny exe to see the options). By "proper directory naming", do you mean capitalizing every first letter ? I can add this option.
-ak_ (April 24, 2008, 06:24 PM)
--- End quote ---
I know but I'm talking about existing directories so it would probably need to be another utility. I've often thought about asking BlueFive to add a few options to recase but I never got around to it.
http://bluefive.pair.com/recase.htm
Back OT: If it's no trouble, I would like an FileNanny option to stuff or not stuff the files though. :)
skooter1121:
ak_ RE:
skooter> if you mean putting an icon in the context menu, i'm afraid it's not possible. I would have to create a real shell extension and i don't know how to do that (i'd really like to).
Actually I was thinking of the following: I save a lot of web pages in the single page MHT format with Firefox. FileNanny works great to create a generic yellow folder for the MHT file. It would be great if when you create the folder put a desktop.ini file in it also with an icon of choice from the %SystemRoot%\system32\SHELL32.dll default icon file. EXAMPLE of DESKTOP.INI :
[.ShellClassInfo]
IconFile=C:\WINDOWS\system32\SHELL32.dll
IconIndex=-321
ConfirmFileOp=0
InfoTip=MHT File
This gives the folder a different folder icon.
(Hope I clearly explained myself .)
-Skooter1121 (I must have used fileNanny 50 imes today) :Thmbsup:
spacedad:
hi ak_ is why is filenanny not listed in the downloads sections?
i wanted to let people know about it and this thread was a bit hard to find,and i noticed it wasn't on your site either.
it is free for all ,isn't it? you don't need to be a member of donationcoder?
not a problem if you do,cos i think it's a great site a lot of people i know would like to know about.
i did donate for filenanny and hope to get a few more for you.
beermatt:
Hi ak_ - many thanks for FileNanny!, it's great.
However I found that if I modified the folder name then it also renamed the file being moved - which I didn't want (I want to be able to change the folder name but the file to retain its original name).
Therefore I've tweaked it slightly to achieve this - attached contains tweaked source and executable (hope you don't mind). :)
gtoal:
Here's a quick template for how to write a C utility that you can invoke from a right-click, and below that are the contents of a .reg file that would point to the binary. I've called it "bury" in this example, since it would bury a file one level deeper in the file tree... It does show a command window for a few seconds, then it closes. (code extracted from a utility I wrote to gpg-encrypt a file on a right click. That one unencrypts it on a double-click)
-------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
int main(int argc, char **argv) {
char command[4096];
char *s = command;
int rc = 0;
if (argc != 2) {
fprintf(stdout, "syntax: bury filename\n"); exit(1);
}
/* strip file extension, create subdir of that name, rename file to be inside subdir */
/* take care when file has no extension or the rename fails or it is a link or a drive root */
//rc = system(command);
//if (rc != 0) exit(rc);
exit(rc); return(rc);
}
----------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
@=""
[HKEY_CLASSES_ROOT\*\shell\bury]
@="Bury"
[HKEY_CLASSES_ROOT\*\shell\bury\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,67,00,70,00,67,00,65,00,6e,00,63,00,72,00,79,00,70,00,74,00,2e,00,\
65,00,78,00,65,00,20,00,22,00,25,00,31,00,22,00,00,00
[HKEY_CLASSES_ROOT\Applications\bury.exe]
[HKEY_CLASSES_ROOT\Applications\bury.exe\shell]
[HKEY_CLASSES_ROOT\Applications\bury.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\bury.exe\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,62,00,75,00,72,00,79,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,\
31,00,22,00,00,00
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version