Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

Changing Directory in Command Prompt

I am trying to change to a directory called "This Directory" in a command prompt by typing 'cd thisdi~1' it says path not found.  However when I type 'thisdi~2' it works.  There is only one 'This Directory' or anything similar.  Where can I go to tell Windows that 'thisdi~1' does not exist?
1 Solution
frist you can use
cd "This Directory" to enter your directory
second probably there was a dir simillar
i would try to delete or rename the dir and then rename back what happens
Why are you shortenning it?
With the CD command, you can specify the full length name, like so:

CD This Directory

Or, when using other commands, you simply have to place quotes round it:

Command "directory"

>> IM
mfairAuthor Commented:
I knew it was an easy fix but I was determined to make it harder that it should have been.  I should have tried to rename the directory!

I had to shorten the names becasue there was an application on the server that needed to have it shortened because of the way it was configured.

Thanks for the input.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now