ITsVISTA
Information that makes life easier when it comes to installing, managing, and using Windows Vista.
Start About FAQ Blogroll Shop

Vista's MKDIR Command

Creates a directory.

MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

mkdir \a\b\c\d

is the same as:

mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d

which is what you would have to type if extensions were disabled.

Get notified of new posts for FREE via RSS or E-mail

Subscribe to ITsVISTA!

Related Posts

Comments

  • Mike Mays

    Apr 15, 2007 at 11:37 am

    Under WinXP, I could create a windows directory with a “MKDIR” command issued from within a program, then create data files using the newly created folder.

    With Vista, I can create the folder, however writes are denied from the program. Looking at the attributes to the folder, the “Read Only” box is checked, and I have been unable to clear it.

    Is there a way to use MKDIR under Vista, which creates a file that does not have any write restrictions?

  • Joe

    Apr 17, 2007 at 9:02 pm

    I’m not familiar with what you’re doing, but I’d guess that the process that is creating the directory has elevated privileges, but then the program trying to write to it doesn’t. Can you use ATTRIB or CACLS to setup the folder with the proper settings?

  • Mike Mays

    Apr 18, 2007 at 6:07 am

    The program that creates the folder,and the one that attempts to createfiles in it are the same. The folder is created when the program issues a “MD \IMMAIL\KIM” DOS command.

    The program(REXX) then attempts to create files within this new folder, however it is denied, as the new folder has “Read Only” attribute set.

    This same program will function just fine under WinXP.

  • Joe

    Apr 18, 2007 at 8:28 am

    I wonder if running the program as ‘administrator’ or in ‘compatibility mode’ would make any difference? You might try doing a ‘properties’ on the exe and checking the Compatibility tab to try these two settings.

Leave a Comment