Saved Bookmarks
| 1. |
Solve : Child Batch!!!? |
|
Answer» hi all there!!! Can you rephrase your question?i need to creat this batch HAVR u got any idea?And you want this batch script to do what exactly? Quote from: macdad- on May 27, 2009, 10:58:01 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!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? Quote from: macdad- on May 27, 2009, 11:11:04 AM Sounds like a good cause, but just to make sure:to shut down internet connection if he over time it!This is not really possible in Batch but there is free software designed for this use: http://restrict-internet-access.vista-files.org/ Quote from: macdad- on May 27, 2009, 11:17:16 AM This is not really possible in Batch but there is free software designed for this use:thanks mac i will check itYou 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 exitOr use Helpmeh's script, by the way nice script, never thought of ipconfig 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.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.or actual supervision.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. |
|