Tags: bycd, correcti, directory, format, messageparameter, microsoft, msdn, orahomedes6i, software, spelled

cd to long directory name

On Microsoft » Microsoft XP

8,236 words with 5 Comments; publish: Mon, 26 May 2008 20:19:00 GMT; (331125.00, « »)

I am try to cd to a long directory name by

cd "OraHomeDes6i" but I get the message

Parameter Format Not Correct

I have it spelled right...what is the trick.

I thought windows could do long names since win95

All Comments

Leave a comment...

  • 5 Comments
    • Ditch the quotes.

      Chdir (Cd)

      http://www.microsoft.com/resources/d.../ntcmds_o.mspx

      Hope this helps. Let us know.

      Wes

      In news:1cd6601c45313$32bdf390$a501280a.windows-xp.questionfor.info.phx.gbl,

      Manny <anonymous.windows-xp.questionfor.info.discussions.microsoft.com> hunted and pecked:

      > I am try to cd to a long directory name by

      > cd "OraHomeDes6i" but I get the message

      > Parameter Format Not Correct

      > I have it spelled right...what is the trick.

      > I thought windows could do long names since win95

      #1; Mon, 26 May 2008 20:20:00 GMT
    • Wes...thanks for your reply but its a no go.

      I put in the quotes as without them I get

      invalid directory.

      This is embarassing...I have my Mac friend tell me how

      Macs have no issue with long file names. I thought

      windows didn't either. It appears its only true as long

      as your in explorer. If you go to the dos prompt you get

      this issue.

      >--Original Message--

      >Ditch the quotes.

      >Chdir (Cd)

      >http://www.microsoft.com/resources/d...ation/windows/

      xp/all/proddocs/en-us/ntcmds_o.mspx

      >

      >--

      >Hope this helps. Let us know.

      >Wes

      >In news:1cd6601c45313$32bdf390$a501280a.windows-xp.questionfor.info.phx.gbl,

      >Manny <anonymous.windows-xp.questionfor.info.discussions.microsoft.com> hunted and

      pecked:

      >.

      >

      #2; Mon, 26 May 2008 20:21:00 GMT
    • Just to make sure ...

      You aren't leaving a space between the characters in the folder name, are

      you? If so, then you do indeed need the quotes.

      David Nimon

      dnimonREMOVE.windows-xp.questionfor.info.##sympatico.ca

      <anonymous.windows-xp.questionfor.info.discussions.microsoft.com> wrote in message

      news:1d15f01c4531a$00bfee50$a001280a.windows-xp.questionfor.info.phx.gbl...[vbcol=seagreen]

      > Wes...thanks for your reply but its a no go.

      > I put in the quotes as without them I get

      > invalid directory.

      > This is embarassing...I have my Mac friend tell me how

      > Macs have no issue with long file names. I thought

      > windows didn't either. It appears its only true as long

      > as your in explorer. If you go to the dos prompt you get

      > this issue.

      > xp/all/proddocs/en-us/ntcmds_o.mspx

      > pecked:

      #3; Mon, 26 May 2008 20:22:00 GMT
    • Sorry about the link. It should've shown this...

      Chdir (Cd)

      Displays the name of the current directory or changes the current folder.

      Used with only a drive letter (for example, chdir C, chdir displays the

      names of the current drive and folder. Used without parameters, chdir

      displays the current drive and directory.

      Syntax

      chdir [[/d] [Drive:][Path] [..]] [[/d] [Drive:][Path] [..]]

      cd [[/d] [Drive:][Path] [..]] [[/d] [Drive:][Path] [..]]

      Parameters

      /d : Changes the current drive or the current directory for a drive.

      [drive:][Path] : Specifies the drive (that is, if it is different from the

      current drive) and directory to which you want to change.

      [..] : Specifies that you want to change to the parent folder.

      /? : Displays help at the command prompt.

      Remarks

      Working with command extensions

      With command extensions enabled (that is, the default), the current

      directory path matches the folder names exactly as they appear on your hard

      drive, using the same uppercase or lowercase folder-name format. For

      example, if the folder on your hard drive is called C:\Temp, CD C:\TEMP sets

      the current directory to C:\Temp to match the folder-name format of the

      folder on your hard drive.

      To disable command extensions for a particular process, type:

      cmd e:off

      When you disable command extensions, chdir does not treat white spaces as

      delimiters. As a result, you can change to a subdirectory name that contains

      a white space without having to surround [Path] in quotation marks. For

      example, the following path changes to the \Start menu subdirectory:

      cd \winnt\profiles\username\programs\start menu

      Changing to the root directory

      The root directory is the top of the directory hierarchy for a drive. To

      return to the root directory, type:

      cd\

      Changing the default directory on one drive from another drive

      To change the default directory on a drive different from the one you are

      on, type one of the following:

      chdir [Drive:\[directory]]

      cd [Drive:\[directory]]

      To verify the change to the directory, type one of the following:

      chdir [Drive:]

      cd [Drive:]

      The chdir command, with different parameters, is available from the

      Recovery Console.

      Examples

      When you use it with a drive name, chdir displays the current directory for

      that drive. For example, if you type cd c: at the C:\Temp directory prompt,

      the following appears:

      C:\Temp

      To change your current directory to a directory named Reports, type one of

      the following commands:

      chdir \reports

      cd \reports

      To change your current directory to a subdirectory \Specials\Sponsors, type:

      cd \specials\sponsors

      Or, if your current directory is \Specials, type the following command to

      change to the \Specials\Sponsors subdirectory:

      cd sponsors

      To change from a subdirectory to its parent directory, type:

      cd ..

      To display the name of the current directory, you can use chdir or cd

      without a parameter. For example, if your current directory is \Public\Jones

      on drive B, typing chdir the following appears:

      B:\Public\Jones

      If you are working on drive D and you want to copy all files in the

      \Public\Jones and \Public\Lewis directories on drive C to the root directory

      on drive D, type:

      chdir c:\public\jones

      copy c:*.* d:\

      chdir c:\public\lewis

      copy c:*.* d:\

      If you want to copy all files in the \Public\Jones and \Public\Lewis

      directories to your current location on drive D, type:

      chdir c:\public\jones

      copy c:*.* d:

      chdir c:\public\lewis

      copy c:*.* d:

      Formatting legend

      Format Meaning

      Italic

      Information that the user must supply

      Bold

      Elements that the user must type exactly as shown

      Ellipsis (...)

      Parameter that can be repeated several times in a command line

      Between brackets ([])

      Optional items

      Between braces ({}); choices separated by pipe (|). Example: {even|odd}

      Set of choices from which the user must choose only one

      Courier font

      Code or program output

      Hope this helps. Let us know.

      Wes

      In news:1d15f01c4531a$00bfee50$a001280a.windows-xp.questionfor.info.phx.gbl,

      anonymous.windows-xp.questionfor.info.discussions.microsoft.com <anonymous.windows-xp.questionfor.info.discussions.microsoft.com>

      hunted and pecked:[vbcol=seagreen]

      > Wes...thanks for your reply but its a no go.

      > I put in the quotes as without them I get

      > invalid directory.

      > This is embarassing...I have my Mac friend tell me how

      > Macs have no issue with long file names. I thought

      > windows didn't either. It appears its only true as long

      > as your in explorer. If you go to the dos prompt you get

      > this issue.

      > xp/all/proddocs/en-us/ntcmds_o.mspx

      > pecked:

      #4; Mon, 26 May 2008 20:23:00 GMT
    • Manny wrote:

      >I am try to cd to a long directory name by

      >cd "OraHomeDes6i" but I get the message

      >Parameter Format Not Correct

      Are you using the 'Command Prompt' (cmd.exe), or are you doing a run of

      command.com? Command.com is genuine DOS 16 bit code, but is from DOS 5

      and does not deal in long names

      Alex Nichol MS MVP (Windows Technologies)

      Bournemouth, U.K. Alexn.windows-xp.questionfor.info.mvps.D8E8L.org (remove the D8 bit)

      #5; Mon, 26 May 2008 20:24:00 GMT