Batch File Tips for DOS/Windows

Current .bat File Directory (Ends with \): %~dp0

Don’t display command: @

Don’t display all commands and outputs: @ECHO OFF

Comment line: REM

Wait for enter key: PAUSE


%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.


How to create Self-Signed Code Signing Certificate

Install Windows SDK for Windows 7

cmd with Admin Priviliges

cd C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin

makecert -r -pe -n “CN=My CA” -ss CA -sr CurrentUser -a sha256 -cy authority -sky signature -sv MyCA.pvk MyCA.cer

certutil -user -addstore Root MyCA.cer

makecert -pe -n “CN=My SPC” -a sha256 -cy end -sky signature -ic MyCA.cer -iv MyCA.pvk -sv MySPC.pvk MySPC.cer

pvk2pfx -pvk MySPC.pvk -spc MySPC.cer -pfx MySPC.pfx

signtool sign /v /f MySPC.pfx /t http://timestamp.url MyExecutable.exe

Timestamp URLs:

EdgeLit vs Direct Led



  • Led panel on back side of screen.
  • But uniform brightness throughout.


  • More LEDs required.
  • Costlier.
  • Thicker than edgelit.



  • Requires less LEDs (if dled will require 800 LEDs than edgelit will only require 100).
  • Cheaper than DLED.
  • Thinner than DLEDs (DLED requires 2 to 4 inch thickness whereas edgelit requires 1–2 inch).


  • Non uniform brightness ( brighter on edges and dimmer in middle).
  • More bigger the tv, more problems with its brightness.