WiredWX Hobby Weather ToolsLog in

 


descriptionHow do i make a cmd(command prompt) batch file to do this? EmptyHow do i make a cmd(command prompt) batch file to do this?

more_horiz
Detect your current Operating System
· Import new "Working" Registry Values
· Backup any Current "Hosts" file
· Replace the "Hosts" file with a default one
· Reboot the Computer

basically i want to create my own program that works just like winsock fix:
http://www.snapfiles.com/get/winsockxpfix.html

descriptionHow do i make a cmd(command prompt) batch file to do this? EmptyRe: How do i make a cmd(command prompt) batch file to do this?

more_horiz
Im guessing you want to detect which *windows* OS you're running under? A google search (http://www.google.dk/#hl=da&q=batch+detect+os&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=354a5c1d7aadcbd0) gives the follwowing result:

http://support.microsoft.com/kb/190899

That might help.

Importing registry values is a matter of simply running a file with the .reg extension.

If you don't know how to replace a file you're seriously in way over your head.

Rebooting the Windows OS from a batch file is something along the lines of:

http://www.computerhope.com/issues/ch000321.htm

No offense but you could have found all these things in less time than it took you to write your question. If you want us to help you write the script just say so outright.

Regards,
Søren

descriptionHow do i make a cmd(command prompt) batch file to do this? EmptyRe: How do i make a cmd(command prompt) batch file to do this?

more_horiz
Sorry that wasn't very nicely put of me. My apologies. I had been fixing other peoples problems all day but that's really no excuse for being such an arrogant prick. Hope you make it work. If not ask again i'll lend a hand.

descriptionHow do i make a cmd(command prompt) batch file to do this? EmptyRe: How do i make a cmd(command prompt) batch file to do this?

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum