Results 1 to 7 of 7

Thread: Quick Question: ReName Command For MS-DOS?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Could someone give me the
    command to rename a directory
    in ms-dos... thanks!
    I forgot it!

    Thanks!

  2. #2
    Guest
    In MS-DOS, type Rename /? and you will find out what you want there.

  3. #3
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Yes

    It's the move command

    Move c:\renameme c:\ihavebeenrenamed

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Just use the Rename command!!

    eg, for a directory called VB use

    RENAME VB NEWNAME

    and to name it back again;

    RENAME NEWNAME VB


    Move command? I don't think so!
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  5. #5
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Angry Read it!!

    For those of use that don't read questions properly, lets have a little lesson.

    Question:

    Could someone give me the command to rename a directory
    in ms-dos.

    Operative phrase "rename a directory in MS_DOS"

    Not rename it using VB, not using Windows Explorer but in MS-DOS.

    Thanks Buzby for making my arse laugh



  6. #6
    Member
    Join Date
    Sep 2000
    Posts
    49
    The RENAME or REN command in DOS could only rename files and not directories in the good ol' days of MS-DOS 6x, so the MOVE command was used instead.

    Now it seems you can use REN to rename directories (folders) with later versions of MS-DOS (well it defintely works with the version of DOS that comes with NT4 - I've just tried it).

  7. #7
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Ok, Ignore ALL of the top answers there!!! (apart from N*G*Evangelion's)

    Type :
    REN C:\OldName NewName

    Can we put these non vb ones in the chit-chat forum next time please?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width