Welcome to The Tech 
Guide
Google
 
Web www.thetechguide.com
Geeks with attitude
Navigation
  • Home
  • How-To's
  • Tweaks
  • Hardware
  • Software
  • Games
  • Our Picks
  • Downloads
  • FAQ's
  • Forum
  • Chat
  • Tech Deals
  • Links
  • Email

  • Site News
    Our Black Friday section is now online! Click here to check it out.

    Active Discussions
    [an error occurred while processing this directive]


      

    Tutorial on Basic Windows 2000 DOS

      This Section Will Cover
    • 00. What a file is under win enviroment
    • 01. What a variable is in %win2k% batch and how to create them.
    • 02. What echo echo. @echo off does.
    • 03. What operators like > and >> and | do.
    • 04. What a ::comment is.
    • 05. What & does and how to use it &::creatively.
    • 06. What 'DIR' and 'SORT' is and does
    • 07. What a * and a ? mean to the DOS shell.
    • 08. What GOTO _is when used with :_labels, also using PING to create a delay.
    • 09. What if "statements"=="are and what they do".
    • 10. What a basic "for" loop is/does.
    • 11. How to use low interger values with variables.
    • 12. How to parse strings into substrings.
    • 13. How to echo non-echoable characters.
    • 14. How to pass %arguments to a .bat file.
    • 15. Summary

    Ok * (asterisk) means 1 or more characters. ? means only 1 character.

    You commonly use these with DIR. If you would do DIR /AD /B *.mp3 that would print all the files that have the .mp3 extension, in other words all your .mp3's. However if you would do DIR /B ?.mp3 that would only print out the .mp3's you have that have 1 character for a basename. (basename is the name of a file that is not part of the extension). For example if you had A.MP3 and ABC.MP3 DIR /B *.mp3 would print out...

    A.MP3
    ABC.MP3

    But if you used Dir /B ?.MP3 it would only print out...

    A.MP3

    You can use * and ? together. Lets say you want to print out all your .mpg files and .mp3 files, but you did NOT want to print out your .mov files. You could do DIR /B *.mp? that would print ONLY the files that have any basename, but the extension must be 3 letters long and the first 2 letters of the extension must be mp. So it would print out all your .mp3's and .mpg's. If you had a file with the extension of .mpv or .mpa DIR /B *.mp? would also print them out.

    DIR is not a case sensitive command, neither is anything else besides FIND really. We will get to that later.


    Click here to continue





    Questions? Ask in the forum or email me.

    For the Privacy Policy, click here.
      
    Past Articles
  • Build your own Apple Clone
  • AllofMP3 Review
  • Tutorial to Basic Windows 2000 DOS
  • Extracting and joining MPG2 files from SVCD
  • Modifying your Windows XP Boot Logo
  • Unlocking WinXP's setupp.ini
  • Making a Full Screen Bios Logo
  • Making your WinMe CD bootable
  • Auto-insert your Win9x serial
  • Auto-insert your Office2kserial
  • Why FedEx Sucks