Skip navigation

JSI Tip 1163. CD to LFN causes error?

When you try to issue a CD (Change Directory) to a LFN (Long File Name), you receive one of the following:

   Too many parameters

   Parameter format not correct

   Invalid directory
One reason could be that you are using

Use CMD.exe.

Change your shortcuts to be CMD.exe shortcuts.

If you still receive the error, use either of the following methods:

1. Use the short name (Dir <Drive>\ParentFolder /x /ad).

2. Type CD \LFN or CD /D "<Drive:>\LFN".

3. Type Pushd \LFN or Pushd "<Drive:>\LFN".

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.