|
Answer» Good day,
Any idea how to make batch file that will monitor the internet connection every hour after the PC turned on, if the internet connection detected "down" the bath file will keep monitoring the internet connection every hour. Once the internet connection "up" it will run copy file from local hardisk to ftp server and finish.
The batch file should be run in weekly base.
Best Regards, Jhohan There are a couple of things you need here 1] a scheduled task to run every hour 2] a way of monitoring your connection.
1] you can either use the AT command (which Ive never done, but you can find references to using it on this site) or the windows scheduler
2] you can ping your favourite website and test the response, a timeout will mean it isnt available. I suggest that you ping the server that you are loading your files to.
GrahamThanks for your advise. Could you show me the batch script for point no. 2 C:\>ping /?
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] target_name
Options: -t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -a Resolve addresses to hostnames. -n count NUMBER of echo REQUESTS to send. -l size Send buffer size. -f Set Don't Fragment flag in packet. -i TTL Time To Live. -v TOS Type Of Service. -r count Record route for count hops. -s count Timestamp for count hops. -j host-list Loose source route along host-list. -k host-list Strict source route along host-list. -w timeout Timeout in milliseconds to wait for each reply.
C:\>at /? The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command.
AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE] [ /EVERY:date[,...] | /NEXT:date[,...]] "command"
\\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,...] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,...] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. "command" Is the Windows NT command, or batch program to be run.
C:\>You guys should read the rules. Having files copied too a ftp server could be missused and classed as hacking because the user may or may not be using this code too upload files from some one elses computer without permission and you just aided and abetted them in stealing personal details.
and yet ironically enough you just vended information about a "password reset disk"... since I could only infer that, given VISTA does not prompt to create one, the user doesn't have one, the implication is that you are suggesting the use of a Password cracker?
a password cracker can be misused and have far worse results then the copying of a few files via a very OBVIOUS batch file that anybody can see on the desktop and close.Quote from: BC_Programmer on July 24, 2009, 10:18:10 AM and yet ironically enough you just vended information about a "password reset disk"... since I could only infer that, given Vista does not prompt to create one, the user doesn't have one, the implication is that you are suggesting the use of a Password cracker?
a password cracker can be misused and have far worse results then the copying of a few files via a very obvious batch file that anybody can see on the desktop and close.
Its not a password cracker. it is a offline registry editor which is different. It does not crack password it reset them by editing the registry. How on earth do you call yourself a expert? You obviously do not know what you are talking about when it comes to windows systems.the password isn't stored plaintext in the registry... And in order to get it out of the registry you would need to reverse the hash, which is no small feat.
I was also unaware there was an "online" registry editor... what is it? www.regedit.com?
of course, I infer this since you couldn't possibly mean on-line as in the PC is ON, since off-line would imply the PC is off, making modifications to it's software setup a bit difficult, even with an advanced "offline" registry editor.
Although at the same time your confusion of the terms online and offline could mean that your referring to running some sort of registry editing program from a boot CD or floppy. neither of which makes sense, again, back to square one- cracking the NTLM hash... (although most people's passwords still have an LM hash, which would make it easier), either way, you're going to need to crack some hash. you can't just modify the registry to change/remove passwords, it's not that simple. Even win9x had a more sophisticated scheme.I beg too differ. Lets put aside that you may have not used a offline password editor.
Now create a new admin ACCOUNT on your own system friend. Set a password forget what the password is.
Restart your pc hit F8 Start in safe mode once windows starts click on accounts then edit accounts you can then either change the admin password of the account you lost the password for or you can create another admin account. In no way did it touch the Password hash there for it not cracking and not illegal.
The offline boot disk does the same but faster. It does not crack the password this would take hours too days. Any brute force password attack or decryption of which you where refering too would take way way longer then 5 mins. Which the offline boot disk takes. Dont believe me? Prove me wrong. Download a password reset boot disk or even one called [emailprotected] Boot Disk they have a free trial.
http://www.ntfs.com/boot-disk.htm
It is not cracking if it where illegal they would have had their website shut down ages ago and the feds busting down their door.
Once you tried any of the above then comment on the password reset methods then comment because its not cracking. I know iv used this method on my own system when i forgot my long password of upper and lower case letters and also numbers. Alright, I'll give it a look see.
Even if it doesn't crack the password, it's still against the forum rules (bypassing password protection)... actually, come to think of it though, I don't think cracking passwords is illegal either.
|