Solved

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

Posted on 2004-10-12
1
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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…
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

738 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