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

Author Topic: Child Batch!!!  (Read 8094 times)

0 Members and 1 Guest are viewing this topic.

dimman

    Topic Starter


    Rookie

    Child Batch!!!
    « on: May 27, 2009, 10:52:26 AM »
    hi all there!!!

    I need a batch to:
    1. run on start of internet connection
    2. after specific time with a password shut down internet connection
    3. and if u try to reconnect don't let u unless u put the pass


    is all these possible??? pls help the newbeiiiee!!!
    tnhks

    macdad-



      Expert

      Thanked: 40
      Re: Child Batch!!!
      « Reply #1 on: May 27, 2009, 10:53:07 AM »
      Can you rephrase your question?
      If you dont know DOS, you dont know Windows...

      Thats why Bill Gates created the Windows NT Family.

      dimman

        Topic Starter


        Rookie

        Re: Child Batch!!!
        « Reply #2 on: May 27, 2009, 10:57:27 AM »
        Can you rephrase your question?
        i need to creat this batch havr u got any idea?

        macdad-



          Expert

          Thanked: 40
          Re: Child Batch!!!
          « Reply #3 on: May 27, 2009, 10:58:01 AM »
          And you want this batch script to do what exactly?
          If you dont know DOS, you dont know Windows...

          Thats why Bill Gates created the Windows NT Family.

          dimman

            Topic Starter


            Rookie

            Re: Child Batch!!!
            « Reply #4 on: May 27, 2009, 11:00:32 AM »
            And you want this batch script to do what exactly?
            to manage the time of my child's internet connection, i will put several pass, for ex.
            with 12345>>>1hour
            with 32145>>>2hours
            it's agood idea i think!

            macdad-



              Expert

              Thanked: 40
              Re: Child Batch!!!
              « Reply #5 on: May 27, 2009, 11:11:04 AM »
              Sounds like a good cause, but just to make sure:

              You want to monitor how much time your child uses the internet(or just Internet Explorer or Firefox)?

              And close it if he/she has used it more than so many hours?
              If you dont know DOS, you dont know Windows...

              Thats why Bill Gates created the Windows NT Family.

              dimman

                Topic Starter


                Rookie

                Re: Child Batch!!!
                « Reply #6 on: May 27, 2009, 11:13:34 AM »
                Sounds like a good cause, but just to make sure:

                You want to monitor how much time your child uses the internet(or just Internet Explorer or Firefox)?

                And close it if he/she has used it more than so many hours?
                to shut down internet connection if he over time it!

                macdad-



                  Expert

                  Thanked: 40
                  Re: Child Batch!!!
                  « Reply #7 on: May 27, 2009, 11:17:16 AM »
                  This is not really possible in Batch but there is free software designed for this use:
                  http://restrict-internet-access.vista-files.org/
                  If you dont know DOS, you dont know Windows...

                  Thats why Bill Gates created the Windows NT Family.

                  dimman

                    Topic Starter


                    Rookie

                    Re: Child Batch!!!
                    « Reply #8 on: May 27, 2009, 11:18:18 AM »
                    This is not really possible in Batch but there is free software designed for this use:
                    http://restrict-internet-access.vista-files.org/
                    thanks mac i will check it

                    Helpmeh



                      Guru

                    • Roar.
                    • Thanked: 123
                      • Yes
                      • Yes
                    • Computer: Specs
                    • Experience: Familiar
                    • OS: Windows 8
                    Re: Child Batch!!!
                    « Reply #9 on: May 27, 2009, 02:53:58 PM »
                    You could put a batch file in a startup script...and use the sleep command (downloaded seprately) and ipconfig /release (I think that should do it)...


                    Something like...

                    @echo off
                    set timecount=3600
                    :loop
                    ipconfig /renew
                    sleep %timecount%
                    ipconfig /release
                    echo Password required to continue!
                    set /p pass=
                    if /i %pass%==PASSWORD1 set timecount=3600 & goto loop
                    rem 3600 is 1 hour.
                    if /i %pass%==PASSWORD2 set timecount=7200 & goto loop
                    rem 7200 is 2 hours.
                    echo Password is incorrect!
                    pause > nul
                    exit
                    Where's MagicSpeed?
                    Quote from: 'matt'
                    He's playing a game called IRL. Great graphics, *censored* gameplay.

                    macdad-



                      Expert

                      Thanked: 40
                      Re: Child Batch!!!
                      « Reply #10 on: May 27, 2009, 06:50:18 PM »
                      Or use Helpmeh's script, by the way nice script, never thought of ipconfig  ;)
                      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: Child Batch!!!
                      « Reply #11 on: May 27, 2009, 07:05:14 PM »
                      one problem with that approach, is that an icon appears saying "limited or no connectivity" clicking that reveals  a dialog with the "repair" button, which renews the IP lease.
                      I was trying to dereference Null Pointers before it was cool.

                      macdad-



                        Expert

                        Thanked: 40
                        Re: Child Batch!!!
                        « Reply #12 on: May 27, 2009, 07:13:48 PM »
                        Could create a for loop to check to see if Firefox or IE was started(Loop every second) but that would include Tasklist.

                        So it seems the software designated for such task would be the only option.
                        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: Child Batch!!!
                        « Reply #13 on: May 27, 2009, 07:15:11 PM »
                        or actual supervision.
                        I was trying to dereference Null Pointers before it was cool.

                        Carbon Dudeoxide

                        • Global Moderator

                        • Mastermind
                        • Thanked: 169
                          • Yes
                          • Yes
                          • Yes
                        • Certifications: List
                        • Experience: Guru
                        • OS: Mac OS
                        Re: Child Batch!!!
                        « Reply #14 on: May 27, 2009, 09:24:39 PM »
                        Just so you know....

                        The passwords can be easily viewed if you edit the batch file.
                        The batch file can simply be closed to stop the timer.