What about this reg file REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor] "AutoRun"="SET COMSPEC=C:\\WINDOWS\\Cmd.exe" [HKEY_LOCAL_MACHINE\Software\CLASSES\.cmd] @="cmdfile" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile] @="Windows NT Command Script" "EditFlags"=hex:d0,04,00,00 [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell] @="" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\open] @="" "EditFlags"=hex:00,00,00,00 [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\open\command] @="C:\\WINDOWS\\Cmd.exe /C \"%1\" %*" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\print] @="" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\print\command] @="C:\\WINDOWS\\NOTEPAD.EXE /p %1" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\edit] @="&Edit" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shell\edit\command] @="C:\\WINDOWS\\NOTEPAD.EXE %1" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shellex] [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shellex\PropertySheetHandlers] [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\shellex\PropertySheetHandlers\{86F19A00-42A0-1069-A2E9-08002B30309D}] @="" [HKEY_LOCAL_MACHINE\Software\CLASSES\cmdfile\DefaultIcon] @="C:\\WINDOWS\\SYSTEM\\shell32.dll,-153"