command line interface anyone?

Discussion in 'A+' started by robbo1962, Oct 15, 2006.

  1. robbo1962

    robbo1962 Byte Poster

    134
    3
    22
    Ok have returned to this gem after a break and am working through chapter 13 of MM. I can manoevere around this but i am a bit stumped when it comes to deleting a directory, in a directory i have created i have a DIR . and a DIR .. i cannot delete either if these, also when i try DELTREE i am told it is not recognize as an internal or external command, operable program or batch file.Any advice would be appreciated. Thanks Robbo
    Below is what i have been doing.

    6 Dir(s) 110,224,629,760 bytes free

    D:\GB1>MD Games

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:43 <DIR> .
    15/10/2006 22:43 <DIR> ..
    15/10/2006 22:43 <DIR> Files
    15/10/2006 22:43 <DIR> Games
    0 File(s) 0 bytes
    4 Dir(s) 110,224,629,760 bytes free

    D:\GB1>RD Files

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:44 <DIR> .
    15/10/2006 22:44 <DIR> ..
    15/10/2006 22:43 <DIR> Games
    0 File(s) 0 bytes
    3 Dir(s) 110,224,629,760 bytes free

    D:\GB1>RD Games

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:45 <DIR> .
    15/10/2006 22:45 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free


    D:\GB1>MD Games

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:45 <DIR> .
    15/10/2006 22:45 <DIR> ..
    15/10/2006 22:45 <DIR> Games
    0 File(s) 0 bytes
    3 Dir(s) 110,224,629,760 bytes free

    D:\GB1>DEL Games
    D:\GB1\Games\*, Are you sure (Y/N)? y

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:45 <DIR> .
    15/10/2006 22:45 <DIR> ..
    15/10/2006 22:45 <DIR> Games
    0 File(s) 0 bytes
    3 Dir(s) 110,224,629,760 bytes free

    D:\GB1>DELTREE
    'DELTREE' is not recognized as an internal or external command,
    operable program or batch file.

    D:\GB1>DELTREE D:\GB1
    'DELTREE' is not recognized as an internal or external command,
    operable program or batch file.

    D:\GB1>cd
    D:\GB1

    D:\GB1>CD\D
    The system cannot find the path specified.

    D:\GB1>CD/D

    D:\GB1>dir
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:45 <DIR> .
    15/10/2006 22:45 <DIR> ..
    15/10/2006 22:45 <DIR> Games
    0 File(s) 0 bytes
    3 Dir(s) 110,224,629,760 bytes free

    D:\GB1>CD
    D:\GB1

    D:\GB1>CD\

    D:\>DELTREE\GB1
    The system cannot find the path specified.

    D:\>DELTREE D\GB1
    'DELTREE' is not recognized as an internal or external command,
    operable program or batch file.

    D:\>rd
    The syntax of the command is incorrect.

    D:\>RD
    The syntax of the command is incorrect.

    D:\>RD\GB1
    The directory is not empty.

    D:\>CD/GB1

    D:\GB1>dir
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:45 <DIR> .
    15/10/2006 22:45 <DIR> ..
    15/10/2006 22:45 <DIR> Games
    0 File(s) 0 bytes
    3 Dir(s) 110,224,629,760 bytes free

    D:\GB1>RD\.
    The directory is not empty.

    D:\GB1>RD .
    The process cannot access the file because it is being used by another process.

    D:\GB1>RD GAMES

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:52 <DIR> .
    15/10/2006 22:52 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\GB1>RD .
    The process cannot access the file because it is being used by another process.

    D:\GB1>RD ..
    The directory is not empty.

    D:\GB1>CD\.

    D:\>RD.
    The process cannot access the file because it is being used by another process.

    D:\>CD\

    D:\>CD\GB1

    D:\GB1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\GB1

    15/10/2006 22:52 <DIR> .
    15/10/2006 22:52 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\GB1>RD .
    The process cannot access the file because it is being used by another process.

    D:\GB1>DELTREE
    'DELTREE' is not recognized as an internal or external command,
    operable program or batch file.

    D:\GB1>CD/

    D:\GB1>CD/H
    The system cannot find the path specified.

    D:\GB1>CD/E
    The system cannot find the path specified.

    D:\GB1>CD\H
    The system cannot find the path specified.

    D:\GB1>CD\

    D:\>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\

    11/08/2006 14:18 <DIR> Airport Tycoon 3
    09/08/2006 03:51 <DIR> BIRD1
    16/03/2006 14:31 <DIR> Documents and Settings
    15/10/2006 22:52 <DIR> GB1
    05/09/2001 23:00 1,700,352 gdiplus.dll
    05/10/2006 19:10 <DIR> gmax
    12/01/2006 17:50 <DIR> Redist
    05/08/2006 13:07 231 X-Plane Installer.prf
    2 File(s) 1,700,583 bytes
    6 Dir(s) 110,224,629,760 bytes free

    D:\>CD\BIRD1

    D:\BIRD1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\BIRD1

    09/08/2006 03:51 <DIR> .
    09/08/2006 03:51 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\BIRD1>DEL .
    D:\BIRD1\*, Are you sure (Y/N)? Y

    D:\BIRD1>DEL ..
    D:\*, Are you sure (Y/N)? Y

    D:\BIRD1>Y
    'Y' is not recognized as an internal or external command,
    operable program or batch file.

    D:\BIRD1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\BIRD1

    09/08/2006 03:51 <DIR> .
    09/08/2006 03:51 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\BIRD1>DEL .
    D:\BIRD1\*, Are you sure (Y/N)? Y

    D:\BIRD1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\BIRD1

    09/08/2006 03:51 <DIR> .
    09/08/2006 03:51 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\BIRD1>DIR
    Volume in drive D is DATA
    Volume Serial Number is B85B-23B4

    Directory of D:\BIRD1

    09/08/2006 03:51 <DIR> .
    09/08/2006 03:51 <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 110,224,629,760 bytes free

    D:\BIRD1>
     
    Certifications: A+
  2. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    dont think you can use it in Windows XP mate :blink

    http://malektips.com/2000wd0008.html
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  3. robbo1962

    robbo1962 Byte Poster

    134
    3
    22
    No mention of that in the book, thanks for the link.
     
    Certifications: A+
  4. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    You will find some differences when playing around with DOS.

    Such as ‘cmd’ being ‘command’ and ‘ipconfig’ being ‘winifconfig’ on older operating systems. :blink
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  5. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,878
    181
    256
    Shouldn't that be *winipcfg* Sparky :rolleyes:
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  6. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224
    You also need a space between the command and the switch.

    D:\GB1>CD\D
    The system cannot find the path specified.

    should be

    D:\GB1>CD D:
    or
    D:\GB1>CD .. to go up one level.
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685
  7. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Deltree doesn't exist in Win2k or XP as far as I know.

    The . and .. entries are in effect 'automatic' entries that refer to 'this directory' and 'parent directory' respectively.

    If the only entries in a directory are these then the directory is empty, and can be removed.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  8. Clyde

    Clyde Megabyte Poster

    558
    15
    62
    what hbroomhall said...

    I dunno why microsoft show those at all. Your best bet is to forget they exist. You cannot delete them.
     
    Certifications: A+, Network+, Security+, MCSA, MCSE
    WIP: MCITP
  9. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Tradition. They hail from the Unix world. And they are in fact useful in some commands.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  10. Clyde

    Clyde Megabyte Poster

    558
    15
    62
    I agree that use of the .. is useful, but displaying the . and .. folders is pointless and confusing IMO
     
    Certifications: A+, Network+, Security+, MCSA, MCSE
    WIP: MCITP
  11. robbo1962

    robbo1962 Byte Poster

    134
    3
    22
    Thanks for the advice, much appreciated. Time to take an aspirin and have another go.
     
    Certifications: A+
  12. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    opps! :oops:
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.