Windows NT wildcards make changing directories easy

  • Section(s): Commandline
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rating: Not Rated
There is some god-awful long directory name - lets say c:\this is a god-awful directory - to change to that directory you could type

C:> cd c:\this is a god-awful directory or you could type C:> cd c:\this*.

Win9x can create directory names / file names with spaces but then they have to enclose the name in quotes to keep the space from terminating the command. This discourages using the command-line in Win9x. Spaces are OK in NT at command-line:

C:> type c:\data\this file rather than C:> type c:\data\"this file" This makes the dark place a little friendlier in NT.

But like all tools you have to be careful. Particularly if there are subdirectories with names matching the portions of a folder with a long file name. Experiment with the copy, del, and rd commands in a subfolder with folders named quickbooks and "copy of quickbooks". If there is ambiguity, use quotes or the Explorer GUI.

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Help Desk solution?