ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Right-Click Menu Create Folder with Enhancements

(1/3) > >>

GoodGuy98:
Right-Click Menu Create Folder with Enhancements

I would like to have a new Windows Explorer right-click menu item that does the following:

Ask for the new folder name
Create that new folder under the current folder
Change to the newly created subfolder
Create an empty text file named Url.txt
Open the newly created empty text file with Notepad or the associated app for .txt files.

I copy and paste a website url into the empty text file and save it.

When I find new software I like, I save the file(s) as well as the url where I found it for
later reference.

This is a before and after folder-file listing to show what I mean.

Before:

C:\Top Folder\
  C:\Top Folder\Subfolder One\
    C:\Top Folder\Subfolder One\Url.txt

After:

C:\Top Folder\
  C:\Top Folder\Subfolder One\
    C:\Top Folder\Subfolder One\Url.txt
  C:\Top Folder\Subfolder Two\
    C:\Top Folder\Subfolder Two\Url.txt

I would right-click while in Top Folder and create the new Subfolder Two
with an empty Url.txt file opened in Notepad etc.

Currently I use a MS-DOS batch file within my Sendto folder to accomplish
this task, but it has a few drawbacks which the new software would cure.
This is my Batch file in case that will help.

C:\Documents and Settings\Userid\SendTo contains a shortcut to a batch file.

NewFold.bat

@echo off

:: The parameter %1 contains the path from the SendTo command
:: The For command extracts the Drive Letter (C:) from the path

Set Var=%1%
For %%i in ("%Var%") Do Set dl=%%~di

%dl%
cd %1

echo.
:folder
set folder=
set /P folder=Enter New Folder Name: %=%
if "%folder%"=="" goto folder

if not exist "%folder%" md "%folder%"

cd "%folder%"

start /max %SystemRoot%\explorer.exe /e,%Var%\%folder%

if not exist Url.txt copy nul Url.txt >nul
start /max notepad.exe Url.txt

Exit

My system is running Windows XP SP3.

skwire:
Currently I use a MS-DOS batch file within my Sendto folder to accomplish
this task, but it has a few drawbacks which the new software would cure.
This is my Batch file in case that will help.-GoodGuy98 (July 15, 2010, 02:12 PM)
--- End quote ---

What are the drawbacks you hope to solve?

GoodGuy98:
The current method leaves the original folder open, so I have to manually close it. The new folder isn't always located next to the original one because
other ones are open, so you have to be careful while closing it.

It also fails occasionally by not creating the subfolder in the selected top level folder. I didn't research it at the time, but I am guessing it
had something to do with path lengths or spaces in the folder structures. It works for the most part, but looks too DOS like. It's not a
big deal though.

Thank you for the reply.

skwire:
Ask for the new folder name
Create that new folder under the current folder-GoodGuy98 (July 15, 2010, 02:12 PM)
--- End quote ---

Easily done to this part.

Change to the newly created subfolder
Create an empty text file named Url.txt
Open the newly created empty text file with Notepad or the associated app for .txt files.
I copy and paste a website url into the empty text file and save it.-GoodGuy98 (July 15, 2010, 02:12 PM)
--- End quote ---

1) Do you literally want to see an Explorer window with the Url.txt in it?
2) If all you're doing is pasting the URL in there, why not do this all in one fell swoop e.g. when asking for the folder name, if a URL is present on the clipboard, append that automatically to Url.txt and be done with it.  No need to show an Explorer window or even the Url.txt file.

Your thoughts?

GoodGuy98:
Yes I need to see the Explorer window because I also store the actual file(s) that I downloaded from the URL.
As an example I might download a freeware program such as AceMoney Lite.

The Url.txt file contains:

http://www.mechcad.net/

http://www.mechcad.net/products/acemoney/index_lite.shtml

The actual software itself is saved as:

AceMoney Lite Ver 4.2.1 (AceMoneyLiteSetup).exe

This way I can check for updates, further documentation, etc.

Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version