Solved

Create new pre-defined Folders (from existing cmd file) on right click in empty folder. W2000

Posted on 2004-10-12
1
136 Views
Last Modified: 2010-04-14
I am using Windows 2000. I would like to be able to streamline my project folders creation, (and force people to create folders the way I want them created!). My intention is to allow someone to create a new folder [eg 04-543]. From within explorer view of this empty folder I would like them to right click and select |[New Project Folders]| this would then create as follows

---|
    DWGS
    SPECS
    DOCS
    etc
I can get the "Create New Folders" to appear as a right click option

HKEY_CLASSES_ROOT\Folder\shell\DosHere                    value = "Create New Folders"
HKEY_CLASSES_ROOT\Folder\shell\DosHere\command    Value = mybatch.cmd

mybatch.cmd contains:

md "Dwgs"
md "Specs"
md "From Others"
md "Spreadsheets"
md "Pics"

this doesn't quite work.
A - You have to right click on the folder 04-543, and the cmd creates the folders in the same folder that 04-543 is in, and not within folder 04-543.

Any help would be appreciated
0
Comment
Question by:hgj1357
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 12291005
That should be more like

HKEY_CLASSES_ROOT\Folder\shell\DosHere\command    Value = mybatch.cmd "%1"

cd %1
md "Dwgs"
md "Specs"
md "From Others"
md "Spreadsheets"
md "Pics"
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question