1
Finished Programs / DONE: Right-Click Menu Create Folder with Enhancements
« on: July 15, 2010, 02:12 PM »
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.
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.