Page 1 of 2 12 LastLast
Results 1 to 16 of 21

Thread: DOS Commands

  1. #1
    Lushious leg end
    Join Date
    Sep 2003
    Location
    East Midlands
    Posts
    306
    Thanks
    1
    Thanked
    5 times in 4 posts
    • Bleek's system
      • CPU:
      • AMD Phenom II 720@ 3.9GHz
      • Memory:
      • 4GB GeIL Black Dragon PC6400
      • Storage:
      • 4x 80GB Hitachi Deskstar RAID 1+0
      • Graphics card(s):
      • HIS ATI 4870
      • PSU:
      • X-Clio 550W
      • Case:
      • Antec Sonata Piano Black
      • Monitor(s):
      • 2x 23" Samsung
      • Internet:
      • 2Mbit (max in my village)

    DOS Commands

    This is bugging me but I can't remember how to get into a directory in dos or at a command prompt that has spaces in the folder name.

    Obviously you use the cd command, however what then for folders with spaces?
    The situation's looking...

  2. #2
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    ::1
    Posts
    8,530
    Thanks
    363
    Thanked
    261 times in 167 posts
    • Allen's system
      • Motherboard:
      • Asus MAXIMUS VIII GENE
      • CPU:
      • Intel® Core™ i5-6600K @ 3.5GHz
      • Memory:
      • Kingston HyperX Predator DDR4 2x8GB
      • Storage:
      • 256GB Samsung 960 PRO + 512GB Samsung 960 Evo
      • Graphics card(s):
      • Asus ROG Strix GeForce GTX 1080 Ti
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    To get into My Documents for example, it would be:

    CD MYDOCS~1

    First 6 letters of folder name plus ~1. Just ignore the space!

  3. #3
    Lushious leg end
    Join Date
    Sep 2003
    Location
    East Midlands
    Posts
    306
    Thanks
    1
    Thanked
    5 times in 4 posts
    • Bleek's system
      • CPU:
      • AMD Phenom II 720@ 3.9GHz
      • Memory:
      • 4GB GeIL Black Dragon PC6400
      • Storage:
      • 4x 80GB Hitachi Deskstar RAID 1+0
      • Graphics card(s):
      • HIS ATI 4870
      • PSU:
      • X-Clio 550W
      • Case:
      • Antec Sonata Piano Black
      • Monitor(s):
      • 2x 23" Samsung
      • Internet:
      • 2Mbit (max in my village)
    .... 8 character, I remember now. Why on earth did I forget that? I'm rusty I tell ya!

    Cheers m8
    The situation's looking...

  4. #4
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    ::1
    Posts
    8,530
    Thanks
    363
    Thanked
    261 times in 167 posts
    • Allen's system
      • Motherboard:
      • Asus MAXIMUS VIII GENE
      • CPU:
      • Intel® Core™ i5-6600K @ 3.5GHz
      • Memory:
      • Kingston HyperX Predator DDR4 2x8GB
      • Storage:
      • 256GB Samsung 960 PRO + 512GB Samsung 960 Evo
      • Graphics card(s):
      • Asus ROG Strix GeForce GTX 1080 Ti
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    How can you forget the old 8.3 filename structure??

    No probs.

  5. #5
    Lushious leg end
    Join Date
    Sep 2003
    Location
    East Midlands
    Posts
    306
    Thanks
    1
    Thanked
    5 times in 4 posts
    • Bleek's system
      • CPU:
      • AMD Phenom II 720@ 3.9GHz
      • Memory:
      • 4GB GeIL Black Dragon PC6400
      • Storage:
      • 4x 80GB Hitachi Deskstar RAID 1+0
      • Graphics card(s):
      • HIS ATI 4870
      • PSU:
      • X-Clio 550W
      • Case:
      • Antec Sonata Piano Black
      • Monitor(s):
      • 2x 23" Samsung
      • Internet:
      • 2Mbit (max in my village)
    Quote Originally Posted by Big_Al
    How can you forget the old 8.3 filename structure??

    No probs.
    To much point and clicking with the newer models.
    The situation's looking...

  6. #6
    Vive le pants! directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • MSI X99A Gaming 7
      • CPU:
      • Intel Core i7 5280k
      • Memory:
      • 32GiB ADATA DDR4
      • Storage:
      • Corsair Neutron XT 960GB
      • Graphics card(s):
      • MSI GTX 980 Gaming 4G Twin Frozr 5
      • PSU:
      • Corsair AX860i
      • Case:
      • NZXT H440
      • Operating System:
      • Ubuntu 17.10, Windows 10
      • Monitor(s):
      • Dell U2713HM
      • Internet:
      • FIOS
    if you're on an XP command prompt, you can use tab completion i.e. "cd doc<tab>" will fill with 'cd "Documents and Settings"'

  7. #7
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    ::1
    Posts
    8,530
    Thanks
    363
    Thanked
    261 times in 167 posts
    • Allen's system
      • Motherboard:
      • Asus MAXIMUS VIII GENE
      • CPU:
      • Intel® Core™ i5-6600K @ 3.5GHz
      • Memory:
      • Kingston HyperX Predator DDR4 2x8GB
      • Storage:
      • 256GB Samsung 960 PRO + 512GB Samsung 960 Evo
      • Graphics card(s):
      • Asus ROG Strix GeForce GTX 1080 Ti
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    Quote Originally Posted by directhex
    if you're on an XP command prompt, you can use tab completion i.e. "cd doc<tab>" will fill with 'cd "Documents and Settings"'
    That don't work for me...

  8. #8
    Will work for beer... nichomach's Avatar
    Join Date
    Jul 2003
    Location
    Preston, Lancs
    Posts
    6,135
    Thanks
    540
    Thanked
    138 times in 99 posts
    • nichomach's system
      • Motherboard:
      • Gigabyte GA-870A-UD3
      • CPU:
      • AMD Phenom II X6 1055T 95W
      • Memory:
      • 16GB DR3
      • Storage:
      • 1x250GB Maxtor SATAII, 1x 400GB Hitachi SATAII
      • Graphics card(s):
      • Zotac GTX 1060 3GB
      • PSU:
      • Coolermaster 500W
      • Case:
      • Coolermaster Elite 430
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 20" TFT
      • Internet:
      • Virgin Media Cable
    Quote Originally Posted by Bleek
    This is bugging me but I can't remember how to get into a directory in dos or at a command prompt that has spaces in the folder name.

    Obviously you use the cd command, however what then for folders with spaces?
    Put the path in quotes, e.g. if at C:\, use cd "Program Files\Microsoft Office"

    Last edited by nichomach; 15-01-2004 at 05:12 PM.

  9. #9
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    ::1
    Posts
    8,530
    Thanks
    363
    Thanked
    261 times in 167 posts
    • Allen's system
      • Motherboard:
      • Asus MAXIMUS VIII GENE
      • CPU:
      • Intel® Core™ i5-6600K @ 3.5GHz
      • Memory:
      • Kingston HyperX Predator DDR4 2x8GB
      • Storage:
      • 256GB Samsung 960 PRO + 512GB Samsung 960 Evo
      • Graphics card(s):
      • Asus ROG Strix GeForce GTX 1080 Ti
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    Quote Originally Posted by nichomach
    Put the path in quotes, e.g. if at C:\, use cd "Program Files\Microsoft Office"

    Blah, that takes to long to type out!

  10. #10
    Will work for beer... nichomach's Avatar
    Join Date
    Jul 2003
    Location
    Preston, Lancs
    Posts
    6,135
    Thanks
    540
    Thanked
    138 times in 99 posts
    • nichomach's system
      • Motherboard:
      • Gigabyte GA-870A-UD3
      • CPU:
      • AMD Phenom II X6 1055T 95W
      • Memory:
      • 16GB DR3
      • Storage:
      • 1x250GB Maxtor SATAII, 1x 400GB Hitachi SATAII
      • Graphics card(s):
      • Zotac GTX 1060 3GB
      • PSU:
      • Coolermaster 500W
      • Case:
      • Coolermaster Elite 430
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 20" TFT
      • Internet:
      • Virgin Media Cable
    Quote Originally Posted by Big_Al
    Blah, that takes to long to type out!
    Yeah, but it works if you want to change to a folder where the first few characters are the same as another folder - check your Program Files folder for the number that start w/MICROS for instance - want to take bets on which one is ~1, ~2 and so forth?

  11. #11
    Oh no!I've re-dorkalated! Jiff Lemon's Avatar
    Join Date
    Jul 2003
    Location
    Sunny MK
    Posts
    2,504
    Thanks
    80
    Thanked
    44 times in 41 posts
    open command prompt, type CD then drag and drop folder into command prompt window

  12. #12
    DsW
    DsW is offline
    Senior Member
    Join Date
    Aug 2003
    Location
    Glasgow
    Posts
    292
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by Bleek
    This is bugging me but I can't remember how to get into a directory in dos or at a command prompt that has spaces in the folder name.

    Obviously you use the cd command, however what then for folders with spaces?
    As well as using tab completion and double quotes, you can also use wildcard completion (on W2K and XP):

    cd doc*

    If the expression isn't unique it'll take the first match (alphabetically).

    cheers,
    dave

  13. #13
    Raging Bull DeludedGuy's Avatar
    Join Date
    Dec 2003
    Location
    London
    Posts
    2,594
    Thanks
    112
    Thanked
    76 times in 55 posts
    • DeludedGuy's system
      • Motherboard:
      • Gigabyte H87M-HD3
      • CPU:
      • Core i5 4440
      • Memory:
      • 8GB DDR3 1800mhz
      • Storage:
      • 250GB Samsung 840 SSD
      • Graphics card(s):
      • Gigabyte R9 270 OC 2GB
      • PSU:
      • BeQuiet Pure Power L8 600w
      • Case:
      • Silverstone TJ08-E
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 24" Dell U2414H
      • Internet:
      • 75Mb BT Infinity
    Any of you know a website with all known DOS commands?

  14. #14
    DsW
    DsW is offline
    Senior Member
    Join Date
    Aug 2003
    Location
    Glasgow
    Posts
    292
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by DeludedGuy
    Any of you know a website with all known DOS commands?
    Type 'help' in the Command Prompt window to get a list of commands then 'help' followed by the command to get specific help.

    Other than that... try here - http://www.techiwarehouse.com/DOS/XP_DOS_Tutorial.html

    cheers,
    dave

  15. #15
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb
    in windows 2k + you can just type 'cd documents and settings' and it works.. i thinkthe [tab] thing, you can enable in tweakUI or something like that, as its off by default.

    dos commands you need:

    cd - change directory, ie cd winnt (also cd .. to go up one level, and cd \ to go back to root dir)
    dir - list files, ie dir *.txt or, just dir (dir /p to break results into a screen at a time)
    ren - rename, ie ren something.txt something.bat
    copy - mm dunno, copy *.txt c:\arse for example
    md - make directory, ie md temp
    rmdir - remove directory, ie rmdir temp (has to be empty)
    del - obvious, delete,
    deltree - think deletes all files in a directory and sub directories

    er prolly missed a few, like xcopy, never knew what the advantage of that is... dunno what else you would need tho

    mark

  16. #16
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    to get tab completion use "cmd" rather than "command". So go 'start' -> run, type 'cmd'.
    It is a POOR attempt at tab completion. If you have two files in a dir - not that unrealistic - that have similar names. File1, File2 for example. Type "F" press tab, and it will immediately go to "File1" rather than autocomplete to "File" and display the small list of possibilities so u can complete the filename correctly. This is annoying if you have been spoiled by the linux auto complete.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help - How do I install a driver in dos to format?
    By Universal in forum PC Hardware and Components
    Replies: 7
    Last Post: 21-11-2003, 07:08 PM
  2. loading win2k or win98 in DOS
    By blockers in forum Software
    Replies: 2
    Last Post: 08-11-2003, 10:10 AM
  3. Any Diagnostic DOS based Software?
    By Mahdi in forum Software
    Replies: 6
    Last Post: 18-10-2003, 11:57 PM
  4. VME commands
    By robbiehall in forum Software
    Replies: 0
    Last Post: 11-08-2003, 12:28 PM
  5. script of useful commands
    By robbiehall in forum Software
    Replies: 5
    Last Post: 08-08-2003, 06:49 AM

Posting Permissions

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