Thomas Stig Jacobsen’s constant why

Programming, Internet security and ballroom dance

About

I'm a boy/man blogging on Computers, Security, Internet, Coding and common thoughts...

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.

  1. @echo off
  2. title Registrering the SSL- and XML-libraries
  3. echo Do you want to do this?
  4. set /P answer=Y for yes, N for No:
  5. cls
  6. goto %answer%
  7. :Y
  8. echo Running function
  9. echo.
  10. %SYSTEMROOT%\system32\REGSVR32 /s softpub.dll
  11. echo softpub.dll done
  12. %SYSTEMROOT%\system32\REGSVR32 /s wintrust.dll
  13. echo wintrust.dll done
  14. %SYSTEMROOT%\system32\REGSVR32 /s initpki.dll
  15. echo initpki.dll done
  16. %SYSTEMROOT%\system32\REGSVR32 /s Rsaenh.dll
  17. echo Rsaenh.dll done
  18. %SYSTEMROOT%\system32\REGSVR32 /s Mssip32.dll
  19. echo Mssip32.dll done
  20. %SYSTEMROOT%\system32\REGSVR32 /s Cryptdlg.dll
  21. echo Cryptdlg.dll done
  22. %SYSTEMROOT%\system32\REGSVR32 /s Dssenh.dll
  23. echo Dssenh.dll done
  24. %SYSTEMROOT%\system32\REGSVR32 /s Gpkcsp.dll
  25. echo Gpkcsp.dll done
  26. %SYSTEMROOT%\system32\REGSVR32 /s Slbcsp.dll
  27. echo Slbcsp.dll done
  28. %SYSTEMROOT%\system32\REGSVR32 /s Sccbase.dll
  29. echo Sccbase.dll done
  30. %SYSTEMROOT%\system32\REGSVR32 /s msxml3.dll
  31. echo Msxml3.dll done
  32. echo.
  33. echo Function done, press any key to exit
  34. pause
  35. exit
  36. :N
  37. echo Press any key to exit
  38. pause
  39. 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.

Translate: dansk

One Response to “Fix MSN errors”

  1. old skool man. nice!

    damian

Leave a Reply