I just had some problems with logging on the Live services earlier today and I therefore decided to fix it, so clever
I found a help article here: http://tinyurl.com/2qqc49
and I decided to to write a quick BASIC (*.bat) file to make a bit more automatic. I did that because I'm a lazy cow, as all programmers. (is BASIC really programming, anyway I think it is). You can see the source below.
@echo off title Registrering the SSL- and XML-libraries echo Do you want to do this? set /P answer=Y for yes, N for No: cls goto %answer% :Y echo Running function echo. %SYSTEMROOT%\system32\REGSVR32 /s softpub.dll echo softpub.dll done %SYSTEMROOT%\system32\REGSVR32 /s wintrust.dll echo wintrust.dll done %SYSTEMROOT%\system32\REGSVR32 /s initpki.dll echo initpki.dll done %SYSTEMROOT%\system32\REGSVR32 /s Rsaenh.dll echo Rsaenh.dll done %SYSTEMROOT%\system32\REGSVR32 /s Mssip32.dll echo Mssip32.dll done %SYSTEMROOT%\system32\REGSVR32 /s Cryptdlg.dll echo Cryptdlg.dll done %SYSTEMROOT%\system32\REGSVR32 /s Dssenh.dll echo Dssenh.dll done %SYSTEMROOT%\system32\REGSVR32 /s Gpkcsp.dll echo Gpkcsp.dll done %SYSTEMROOT%\system32\REGSVR32 /s Slbcsp.dll echo Slbcsp.dll done %SYSTEMROOT%\system32\REGSVR32 /s Sccbase.dll echo Sccbase.dll done %SYSTEMROOT%\system32\REGSVR32 /s msxml3.dll echo Msxml3.dll done echo. echo Function done, press any key to exit pause exit :N echo Press any key to exit pause exit
Now that I have you here I'll also present some of my other helping BASIC functions I've written.
- ip.bat
- google.bat
- wiki.bat
- statuscheck.bat
- whois.bat
- findperson.bat
- ordbog.bat
I don't think I'll post all the source here but I'll upload a small ZIP file containing all the BAT files for you to review.
URL to the zip file: http://www.e-x-e.dk/stuff/bats.zip
Here is a small presentation to the files:
ip.bat
A simple bat file showing my internal IP, subnet and gateway IP.
Example: ip
google.bat
This reads the first argument, fx. google Hello+World will google the 2 words "Hello" and "world" (without the quotes). You'll have to use the + as a " " because BASIC doesn't contain a replace function.
Example: google Hello+world
wiki.bat
Same method as google.bat but searches Wikipedia.org with the argument instead. I've set it to search the Danish Wikipedia.org since I'm Danish. But this can easily be changed.
Example: wiki Hello+world
statuscheck.bat
This will ping a host or IP which it reads from the first argument and declare it UP or DOWN using errorlevel1.
Example: statuscheck e-x-e.dk
Example: statuscheck 192.168.1.1
whois.bat
A simple whois script for us non-linux users where it's a built in component. It reads argument1 which has to be the domain (fx. e-x-e) and it reads argument2 which has to be the type of doman (fx. dk).
Example: whois e-x-e dk
findperson.bat
This is for danish people since this looks up a person on the Danish site krak.dk. Argument1 is name and argument2 is address.
Example: findperson Anders+fogh
(Anders Fogh is the Danish Prime Minister)
ordbog.bat
Also a file for the danish people. It looks up a word in a dictionary called ordbogen.com. Argument1 is the word and argument2 is the dictionary code.
Best setting for dictionary is auto, enda or daen.
Example: ordbog human enda
In order get these to work in the best way you'll have to place all the files in the %SYSTEMROOT%\system32\ folder. In most cases C:\WINDOWS\system32\.
If you do that you'll be able to run them from the run-dialog (Windows-key and R) and use the example.
old skool man. nice!
damian
May 15th, 2008