REM contextMenuName IS LIMIT TO ONE WORD (no spaces). REM THIS CAN BE RENAMED THROUGH REGEDIT KEY SETVARI contextMenuName REM The path in regedit only allows "\" and NOT "/" REPLACEVAR /=\ %DIALOG_FILE% SHELL reg.exe add HKEY_CLASSES_ROOT\Directory\Background\shell\%contextMenuName%\command\ /f /ve /t REG_SZ /d "\"%REPLACEVAR%\" \"%v\" \"newWindow\""