To add stand-alone app notepad2 and ditto into the Windows system path, write below into file "modifyPath.bat", and run it "as administrator":
setx /M PATH "%PATH%;d:\apps\Ditto;d:\apps\notepad2_4.2"
Now you can press "Win" key, input "ditto" (or notepad),
you can see "Ditto" (or notepad2) program.
Open a console, run echo %PATH%
,
you can see Ditto and notepad2's folder has been added into PATH.