Re: renaming a directory thru DOS on winxp
From: R. C. White (RCWhite_at_msn.com)
Date: 03/04/04
- Next message: Carey Frisch [MVP]: "Re: Custom Shortcut Keys"
- Previous message: Len Dolby: "Re: renaming a directory thru DOS on winxp"
- In reply to: liz: "renaming a directory thru DOS on winxp"
- Next in thread: liz: "Re: renaming a directory thru DOS on winxp"
- Reply: liz: "Re: renaming a directory thru DOS on winxp"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Mar 2004 11:39:18 -0600
Hi, Liz.
Your problem may be with the spaces in your pathname, rather than with the
Move command. To handle LFNs (Long File Names) in either MS-DOS or in the
DOS emulator, also called the Command Prompt, in WinXP, you must enclose the
entire pathname in quotes. Even short filenames are considered LFNs if
there is a space anywhere in the pathname or filename. Also, you must
include the new path, if different from the original.
Try this:
move "c:\program files\network associates\common framework" commframold
to simply rename it in the same place, or:
move "c:\program files\network associates\common framework" c:\commframold
to move it to C:\ and rename it there.
Different rules apply when moving a file from one volume to another, as
opposed to moving from folder to folder within a single volume. To move to
a different volume, the entire file must actually be copied to the new
location, then deleted from the old. To move within a volume, all that must
be done is to create the directory entry in the new folder, then delete it
from the old; the file/folder contents remain where they were.
In the "DOS" window, type any command followed by /? to see a mini-Help file
listing the switches available with that command: Move /?, or Ren /?
RC
-- R. C. White, CPA San Marcos, TX rc@corridor.net Microsoft Windows MVP "liz" <anonymous@discussions.microsoft.com> wrote in message news:6e8001c40204$30925e40$a501280a@phx.gbl... > I am trying to rename a directory on my c:\ thru dos > commands (i am creating a batch file) > > Microsoft recommends the "move command" > > if I move a directory at the root of c:\ it works, > however if the directory is lengthly like the following I > get an error. Can anyone shed some light on this; > > I want to rename or move the common framework directory > from the path below, to the same directoy only rename the > directory commframold > > c:\program files\network associates\common framework
- Next message: Carey Frisch [MVP]: "Re: Custom Shortcut Keys"
- Previous message: Len Dolby: "Re: renaming a directory thru DOS on winxp"
- In reply to: liz: "renaming a directory thru DOS on winxp"
- Next in thread: liz: "Re: renaming a directory thru DOS on winxp"
- Reply: liz: "Re: renaming a directory thru DOS on winxp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|