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

Author Topic: Does anyone know a good education site? (googled for it but can't find it)  (Read 8590 times)

0 Members and 1 Guest are viewing this topic.

Jonas Wauters

    Topic Starter


    Adviser

  • My Skatevids Check Signature
  • Thanked: 2
    Does anyone know a good education site where you can learn batch file commands.
    If someone knows a dutch site that would be wonderful but English is not bad either.

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS

    Jonas Wauters

      Topic Starter


      Adviser

    • My Skatevids Check Signature
    • Thanked: 2
      Yes I've tried this but here you don't get any examples of codes.
      But still thanks for the advice.

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      well first, what OS are you using and do you know how to save a batch file?

      Jonas Wauters

        Topic Starter


        Adviser

      • My Skatevids Check Signature
      • Thanked: 2
        My OS is given at the bottom of every reply and is Windows XP SP2.
        And I do know how to save a batch file.
        Sorry if I sound a bit rude but its because my English isn't so good.
        My apologies.

        Carbon Dudeoxide

        • Global Moderator

        • Mastermind
        • Thanked: 169
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Experience: Guru
        • OS: Mac OS
        Quote
        My OS is given at the bottom of every reply
        Lol, i didn't see that  :D

        Ok so basically if you want to say something with a batch file this is the code
        Code: [Select]
        @echo off
        echo Hello
        pause
        Save that as a .bat file.

        @echo off = This hides the code and 'c:\documents and settings\username\'
                            If you don't get what I mean, try the code without it.
        echo         = This basically says something. To insert a blank space, you type a '.' at
                            the end of 'echo'
        pause       = Does what it says. It makes the user have to press any key to continue

        Jonas Wauters

          Topic Starter


          Adviser

        • My Skatevids Check Signature
        • Thanked: 2
          OK but can you create a pause for some seconds sow you don't have to press a button?
          I'll can create some programs like:
          Code: [Select]
          Title Defragmenteren
          @echo off
          cls
          echo Dit programma is gemaakt door Jonas Wauters.
          echo Dit programma defragmenteerd C: en D: schijf.
          echo Defragmentatie zorgt voor een optimaal gebruik van uw harde schijven.
          Vol C:
          defrag C:
          If not exist d: GOTO e
          vol d:
          defrag d:
          :e
          if not exist e: GOTO f
          vol e:
          defrag e:
          :f
          shutdown -s -f -t 01
          This is my best program its written in dutch.
          Sow this is just to show you how much I can do with batch files.
          Still thanks for being this helpful I really appreciate this.

          Carbon Dudeoxide

          • Global Moderator

          • Mastermind
          • Thanked: 169
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Experience: Guru
          • OS: Mac OS
          Then all you have to do is replace pause with PING Insert 7=(8-1) second delay

          Jonas Wauters

            Topic Starter


            Adviser

          • My Skatevids Check Signature
          • Thanked: 2
            Thanks
            But if I try it I get the error message: Ping request could not find host instert. Please check name and try again.

            Carbon Dudeoxide

            • Global Moderator

            • Mastermind
            • Thanked: 169
              • Yes
              • Yes
              • Yes
            • Certifications: List
            • Experience: Guru
            • OS: Mac OS
            It has to be PING Insert 7=(8-1) second delay followed by cls

            There is also the wait command but you have to download the tool and i'm not familiar with it...

            Jonas Wauters

              Topic Starter


              Adviser

            • My Skatevids Check Signature
            • Thanked: 2
              If I do that ist mutch faster than 7 seconds.
              Can't I get a count down message ?
              Sorry for all those questions.
              But I just like programming.

              Carbon Dudeoxide

              • Global Moderator

              • Mastermind
              • Thanked: 169
                • Yes
                • Yes
                • Yes
              • Certifications: List
              • Experience: Guru
              • OS: Mac OS
              Code: [Select]
              @echo off
              echo.
              echo. 5
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              cls
              echo.
              echo. 4
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              cls
              echo.
              echo. 3
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              cls
              echo.
              echo. 2
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              cls
              echo.
              echo. 1
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              ping 127.0.0.1 -n 1 >nul
              cls
              echo.
              echo. 0!!!
              PING Insert 7=(8-1) second delay
              exit
              ;D

              Jonas Wauters

                Topic Starter


                Adviser

              • My Skatevids Check Signature
              • Thanked: 2
                Yes thanks but how can you count down white seconds those are no seconds are they?
                By the way are you really 14?
                If that's true than your a real expert four your age aren't you?

                Jonas Wauters

                  Topic Starter


                  Adviser

                • My Skatevids Check Signature
                • Thanked: 2
                  Why did you stop answering I saw that you looked at the page.
                  I didn't mean to insult you if I did sorry for that!
                  I'm also just 15 sow why should I wanna say something bad about that.

                  Carbon Dudeoxide

                  • Global Moderator

                  • Mastermind
                  • Thanked: 169
                    • Yes
                    • Yes
                    • Yes
                  • Certifications: List
                  • Experience: Guru
                  • OS: Mac OS
                  Sorry, i guess i didn't see your post. I view CH using the 'show unread posts since last visit' at the top of the page.
                  Yes I am 14 and well i more or less self taught myself 'batch'.
                  I am not sure about the seconds thing though......

                  WillyW



                    Specialist
                  • Thanked: 29
                  • Experience: Experienced
                  • OS: Windows XP
                  Does anyone know a good education site where you can learn batch file commands.
                  If someone knows a dutch site that would be wonderful but English is not bad either.


                  http://www.computerhope.com/batch.htm
                  http://www.computerhope.com/msdos.htm
                  http://www.computerhope.com/overview.htm
                  http://www.vfrazee.com/ms-dos/6.22/help/

                  You might like to bookmark these, as they are very handy.


                  .



                  WillyW



                    Specialist
                  • Thanked: 29
                  • Experience: Experienced
                  • OS: Windows XP
                  OK but can you create a pause for some seconds sow you don't have to press a button?
                   - - -

                  It looks like you are enjoying experimenting and learning,  to figure out how to do this.

                  Another way to get the job done though,  is to use a free program, all ready to go.



                  Download and check out:
                  ftp://ftp.simtel.net/pub/simtelnet/msdos/batchutl/wait.zip

                  It is free.

                  Examples are in the included  readme.





                  edit:   attached a copy of wait.zip to this post
                  I believe you have to be logged in to see it and download it.   Guests reading this won't even see it.

                  [old attachment deleted by admin]
                  « Last Edit: May 01, 2007, 11:52:55 AM by WillyW »
                  .



                  Sidewinder



                    Guru

                    Thanked: 139
                  • Experience: Familiar
                  • OS: Windows 10
                  This may do what you want. In any case it sure is cute to watch.

                  Code: [Select]
                  @echo off
                  for /l %%i in (20,-1,1) do (
                    <nul set/p z= %%i
                    >nul ping 127.0.0.1 -n 2 
                    )

                  Currently set to 20 seconds, but you can change it easily.

                  Allenware offers an easy batch learning guide but is more of a tutorial rather than a reference.

                   8)
                  The true sign of intelligence is not knowledge but imagination.

                  -- Albert Einstein

                  Jonas Wauters

                    Topic Starter


                    Adviser

                  • My Skatevids Check Signature
                  • Thanked: 2
                    How did you learn it by just trying it and use the help in cmd?