Windows 7 batch files: How to check if parameter has been passed to batch file

if %1.==. dir will break if the parameter includes various symbols like “, <, etc if “%1″==”” will break if the parameter includes a quote (“). Use if “%~1″==”” instead: if “%~1″==”” ( echo No parameters have been provided. ) else ( echo Parameters: %* ) This should work on all versions of Windows and … Read more

Getting error, Error: Cannot find module ‘express’ after npm install

I ran into the same problem on Windows 8.1. The express.cmd is not created, but I found the text file: C:\Users\you\AppData\Roaming\npm\node_modules\express\Readme.md It suggests to run this: npm install -g express-generator@3 Which will download more stuff. After that you can use express on the windows command prompt. It will be in your path ( C:\Users\you\AppData\Roaming\npm) Edit: … Read more

Using netsh, bind an SSL certificate to a port number is failing

I fought with this forever to get my IIS Express to do SSL properly. It turns out my certificate was in the Trusted Root Certification Authorities store instead of the Personal Certificates store. This is what worked for me: Make sure your certificate is in “Certificates(Local Computer)/Personal/Certificates” netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid='{00112233-4455-6677-8899-AABBCCDDEEFF}’ SSL … Read more

How to register a legacy typelib (.tlb) on Windows 7?

Well, I guess I can answer my own question (and for anyone else who has the same problem): Apparently, regtlibv12.exe is part of Visual Studio 2010 (contrary to what I read on various Microsoft forums), but it is located in the Windows\Microsoft.NET\Framework\v4.0.30139 folder (not the v2.0.50727 folder). Using that executable I was able to successfully … Read more

tech