Created
June 18, 2013 07:58
-
-
Save t2psyto/5803462 to your computer and use it in GitHub Desktop.
デスクトップログオン後にフォルダリダイレクトする。リダイレクト情報を一時的に書き換える。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| taskkill /F /IM explorer.exe | |
| set remotehome=\\server\data\username | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /d "%remotehome%\マイドキュメント" /f | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Desktop" /d "%remotehome%\デスクトップ" /f | |
| start explorer | |
| sleep 1 | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /d "%USERPROFILE%\Documents" /f | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Desktop" /d "%USERPROFILE%\Desktop" /f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment