Associate file types with programs
Starting a perlscript (for example foo.pl
) without suffix and without prefixing it with perl: c:\> foo
.
@rem
@rem Needs Admin privileges
@rem
@rem assoc .pl=PerlScript
@rem ftype PerlScript=perl.exe %1 %*
@rem
@reg add HKCU\Software\Classes\.pl /t REG_SZ /d PerlScript /f
@rem
@rem Note
@rem If there are multiple perls in %PATH%, the following
@rem construct will find the "last" perl executable, not the first.
@rem
@for /f "usebackq" %%a in (`where perl.exe`) do @set perl_location=%%a
@reg add HKCU\Software\Classes\PerlScript\shell\open\command /t REG_SZ /d "%perl_location% %%1 %%*" /f
@rem TODO
@rem You also might want to add .pl to the env variable PATHEXT
@rem by adding ;.pl
cmd.exe
��W i n d o w s R e g i s t r y E d i t o r V e r s i o n 5 . 0 0
;
; T h i s f i l e c a n n o t b e i m p o r t e d o n t h e c o m m a n d
; l i n e w i t h
; r e g e d i t / s c o n s o l e . r e g
;
; ( I t c a n , h o w e v e r , b e i m p o r t e d w h e n r e g e d i t i s
; s t a r t e d a s G U I p r o g r a m )
;
; U s e c o n s o l e . b a t t o m a k e t h e c h a n g e s t o t h e r e g i s t r y .
;
[ H K E Y _ C U R R E N T _ U S E R \ C o n s o l e \ % S y s t e m R o o t % _ s y s t e m 3 2 _ c m d . e x e ]
" S c r e e n C o l o r s " = d w o r d : 0 0 0 0 0 0 0 f
" S c r e e n B u f f e r S i z e " = d w o r d : 2 7 0 f 0 0 c 8
" W i n d o w S i z e " = d w o r d : 0 0 4 e 0 0 c 8
" F o n t S i z e " = d w o r d : 0 0 0 a 0 0 0 0
" F o n t F a m i l y " = d w o r d : 0 0 0 0 0 0 3 6
" F o n t W e i g h t " = d w o r d : 0 0 0 0 0 1 9 0
" F a c e N a m e " = " L u c i d a C o n s o l e "
" Q u i c k E d i t " = d w o r d : 0 0 0 0 0 0 0 1
Explorer
@rem Disable autoplay
@rem ----------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" /v DisableAutoplay /t REG_DWORD /d 1 /f
@rem Show file extensions
@rem --------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f
@rem Show hidden files (1: Show, 2: Don't show)
@rem ------------------------------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t REG_DWORD /d 1 /f
@rem Really, show ALL hidden Files
@rem -----------------------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v SuperHidden /t REG_DWORD /d 0 /f
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidde /t REG_DWORD /d 1 /f
@rem Don't change case in file names
@rem Commented as it seems to be ok in Windows 7 anyway.
@rem @reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v DontPrettyPath /t REG_DWORD /d 1 /f
@rem No thumb.db files
@rem -----------------
@rem Don't create thumb.db (thumbnail) files for local files
@rem If not turned off, the thumbnail files are stored under %userprofile%\AppData\Local\Microsoft\Windows\Explorer
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v DisableThumbnailCache /t REG_DWORD /d 1 /f
@rem Don't create thumbnail files on network drives
@rem TODO http://superuser.com/questions/1161302/how-do-i-reg-add-to-hkey-current-user-as-adminstrator
@reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v DisableThumbsDBOnNetworkFolders /t REG_DWORD /d 1 /f
@rem Don't ask to search the internet for the correct program when opening a file with an unknown extension
@rem ------------------------------------------------------------------------------------------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoInternetOpenWith /t REG_DWORD /d 1 /f
@rem What difference does this value make?
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoSimpleStartMenu /t REG_DWORD /d 1 /f