Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Dos newbie  (Read 7193 times)

0 Members and 2 Guests are viewing this topic.

Flux

    Topic Starter


    Rookie

  • i am aware that most of my questions are stupid.
    Dos newbie
    « on: February 01, 2009, 08:38:47 PM »
    hi there, i'm a beginner in Dos tho i learned some in my class, ya know intermediate commands like cd, md, rd but what i'm really interested in are commands that i could really use. i wanna be a DOS expert.   ???
    its always better to give people the impression that you're stupid than to open your mouth and remove all doubts.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Dos newbie
    « Reply #1 on: February 01, 2009, 08:44:37 PM »
    "commands you could really use"...


    gee I wonder what that means. Last time I checked managing files was something that could be used.
    I was trying to dereference Null Pointers before it was cool.

    mikel



      Greenhorn

      Re: Dos newbie
      « Reply #2 on: February 01, 2009, 08:45:12 PM »
      low meg musta kana????wahahahaha

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Dos newbie
      « Reply #3 on: February 01, 2009, 08:48:38 PM »
      low meg musta kana????wahahahaha

      I tried my best to make sense of this, but the best I can come up with is it is some sort of off-topic reference to muskeg.
      I was trying to dereference Null Pointers before it was cool.

      Flux

        Topic Starter


        Rookie

      • i am aware that most of my questions are stupid.
        Re: Dos newbie
        « Reply #4 on: February 01, 2009, 10:16:56 PM »
        "commands you could really use"...


        gee I wonder what that means. Last time I checked managing files was something that could be used.
        what i mean is that,commands that are used by experts. :o
        its always better to give people the impression that you're stupid than to open your mouth and remove all doubts.

        Flux

          Topic Starter


          Rookie

        • i am aware that most of my questions are stupid.
          Re: Dos newbie
          « Reply #5 on: February 01, 2009, 10:28:59 PM »
          low meg musta kana????wahahahaha

          I tried my best to make sense of this, but the best I can come up with is it is some sort of off-topic reference to muskeg.
          u got any ideas??...  a list would be helpful.
          its always better to give people the impression that you're stupid than to open your mouth and remove all doubts.

          Dusty



            Egghead

          • I could if she would, but she won't so I don't.
          • Thanked: 75
          • Experience: Beginner
          • OS: Windows XP
          Re: Dos newbie
          « Reply #6 on: February 01, 2009, 11:09:49 PM »
          Flux - Welcome to the CH forums.

          Get used to it - you cannot access Dos in Win XP, Win XP is not built on Dos.  What you can use is a Windows program named Cmd.exe which is a Dos emulator and runs in a window so to call it Dos is a misnomer.  You can, however, run things like DosBox.

          Here is a list of NT commands for use at the XP Command Line or in scripts.  Some are available only in XP Pro, others must be extracted from the Resource Kit.

          Good luck.
          One good deed is worth more than a year of good intentions.

          xcharge50



            Beginner

            Re: Dos newbie
            « Reply #7 on: February 02, 2009, 05:22:31 AM »
            type in the cmd (assuming you want to use the virtual dos):
            help

            It will show you some basic command

            BatchFileCommand



              Hopeful
            • Thanked: 1
              Re: Dos newbie
              « Reply #8 on: February 02, 2009, 06:06:52 AM »
              Google for loops. Those are useful.
              οτη άβγαλτος μεταφ βαθμολογία

              macdad-



                Expert

                Thanked: 40
                Re: Dos newbie
                « Reply #9 on: February 02, 2009, 06:27:04 AM »
                ping -n 1 -w 1000 1.1.1.1 >nul

                can be used as a wait command, or just to ping a computer or server on your network.

                the 1000 is the timeout, that makes PING a excellent wait command.
                and the 1000, is in milliseconds so that would make PING wait for 1 sec.
                If you dont know DOS, you dont know Windows...

                Thats why Bill Gates created the Windows NT Family.

                BC_Programmer


                  Mastermind
                • Typing is no substitute for thinking.
                • Thanked: 1140
                  • Yes
                  • Yes
                  • BC-Programming.com
                • Certifications: List
                • Computer: Specs
                • Experience: Beginner
                • OS: Windows 11
                Re: Dos newbie
                « Reply #10 on: February 02, 2009, 07:07:05 AM »
                the thing I've never really liked about the "ping" method of "sleeping" is that it's a kludge- It works, but it's sort of like how you used to be able to print files in DOS using COPY DOC.TXT PRN.
                I was trying to dereference Null Pointers before it was cool.

                fireballs



                  Apprentice

                • Code:Terminal
                • Thanked: 3
                  Re: Dos newbie
                  « Reply #11 on: February 02, 2009, 07:13:16 AM »
                  I use timeout for pauses but that only works in Vista i think.

                  FB
                  Next time google it.

                  macdad-



                    Expert

                    Thanked: 40
                    Re: Dos newbie
                    « Reply #12 on: February 02, 2009, 12:34:07 PM »
                    Ping is good as a Wait command, if you have a computer with Win 2000 or older that doesnt have Sleep
                    If you dont know DOS, you dont know Windows...

                    Thats why Bill Gates created the Windows NT Family.

                    BC_Programmer


                      Mastermind
                    • Typing is no substitute for thinking.
                    • Thanked: 1140
                      • Yes
                      • Yes
                      • BC-Programming.com
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Beginner
                    • OS: Windows 11
                    Re: Dos newbie
                    « Reply #13 on: February 02, 2009, 12:37:33 PM »
                    Ping is good as a Wait command, if you have a computer with Win 2000 XP or older that doesnt have Sleep


                    Fixed  ;D
                    I was trying to dereference Null Pointers before it was cool.

                    Dias de verano

                    • Guest
                    Re: Dos newbie
                    « Reply #14 on: February 02, 2009, 12:40:51 PM »
                    Ping is good as a Wait command, if you have a computer with Win 2000 XP or older that doesnt have Sleep

                    And you don't know how to download & deploy a Resource Kit.

                    macdad-



                      Expert

                      Thanked: 40
                      Re: Dos newbie
                      « Reply #15 on: February 02, 2009, 04:09:27 PM »
                      *Smack head*
                      didnt know you could get it on Microsofts website.  :P
                      If you dont know DOS, you dont know Windows...

                      Thats why Bill Gates created the Windows NT Family.

                      Dias de verano

                      • Guest
                      Re: Dos newbie
                      « Reply #16 on: February 03, 2009, 12:17:39 AM »

                      macdad-



                        Expert

                        Thanked: 40
                        Re: Dos newbie
                        « Reply #17 on: February 03, 2009, 12:41:22 PM »
                        dang thats got a lot of tools  :o
                        and they are all command line?
                        If you dont know DOS, you dont know Windows...

                        Thats why Bill Gates created the Windows NT Family.

                        Dias de verano

                        • Guest
                        Re: Dos newbie
                        « Reply #18 on: February 03, 2009, 01:04:03 PM »
                        dang thats got a lot of tools  :o
                        and they are all command line?

                        Many of them are.


                        macdad-



                          Expert

                          Thanked: 40
                          Re: Dos newbie
                          « Reply #19 on: February 04, 2009, 12:32:44 PM »
                          awesome, gotta download this.
                          and thanks for the link  8)
                          If you dont know DOS, you dont know Windows...

                          Thats why Bill Gates created the Windows NT Family.

                          Flux

                            Topic Starter


                            Rookie

                          • i am aware that most of my questions are stupid.
                            Re: Dos newbie
                            « Reply #20 on: February 08, 2009, 06:47:06 PM »
                            Flux - Welcome to the CH forums.

                            Get used to it - you cannot access Dos in Win XP, Win XP is not built on Dos.  What you can use is a Windows program named Cmd.exe which is a Dos emulator and runs in a window so to call it Dos is a misnomer.  You can, however, run things like DosBox.

                            Here is a list of NT commands for use at the XP Command Line or in scripts.  Some are available only in XP Pro, others must be extracted from the Resource Kit.

                            Good luck.
                            dude thanks for the link. i really appreciate your help. im sure these would do.
                            its always better to give people the impression that you're stupid than to open your mouth and remove all doubts.

                            GuruGary



                              Adviser
                              Re: Dos newbie
                              « Reply #21 on: February 08, 2009, 11:25:22 PM »
                              ping -n 1 -w 1000 1.1.1.1 >nul

                              can be used as a wait command, or just to ping a computer or server on your network.

                              the 1000 is the timeout, that makes PING a excellent wait command.
                              and the 1000, is in milliseconds so that would make PING wait for 1 sec.

                              It is actually a very bad practice to ping an IP address that you don't administer or have control over.  Besides not being polite (depending on how it is used and how often it could be considered a denial of service attach which I know is not your intent), it is not reliable.  For example, I assume by your example that your are expecting 1.1.1.1 to not respond to your ping (ICMP echo request). If the owner of that IP decides to one day enable ICMP echo for that IP address, then your command above would only pause for a few milliseconds.  It is much better to ping something that you have control over, such as localhost, or 127.0.0.1.  You can use
                              Code: [Select]
                              ping -n 2 localhost >NULto pause for about 1 second (the number should be n+1 where n is the number of seconds to pause because the 1st reply should be instant, and the others will wait 1 second by default).

                              I hope nobody takes offense to this ... just trying to point out a better way.

                              macdad-



                                Expert

                                Thanked: 40
                                Re: Dos newbie
                                « Reply #22 on: February 09, 2009, 11:27:15 AM »
                                good point
                                If you dont know DOS, you dont know Windows...

                                Thats why Bill Gates created the Windows NT Family.