memo

memo dayo.

シンボリックリンクを作成する

mklink /d dirsymlink diroriginal
mklink filesymlink fileoriginal

例:マイドキュメントをデスクトップに指定する

cd c:\

rmdir /S /Q "c:\Users\aaa\Downloads"      
rmdir /S /Q "c:\Users\aaa\Videos"         
rmdir /S /Q "c:\Users\aaa\Music"          
rmdir /S /Q "c:\Users\aaa\Contacts"       
rmdir /S /Q "c:\Users\aaa\Searches"       
rmdir /S /Q "c:\Users\aaa\Saved Games"    
rmdir /S /Q "c:\Users\aaa\My Documents"   
rmdir /S /Q "c:\Users\aaa\Pictures"       
rmdir /S /Q "c:\Users\aaa\Saved Pictures" 
rmdir /S /Q "c:\Users\aaa\Camera Roll"    

mklink /d   "c:\Users\aaa\Downloads"      "c:\Users\aaa\Desktop"   
mklink /d   "c:\Users\aaa\Videos"         "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Music"          "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Contacts"       "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Searches"       "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Saved Games"    "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\My Documents"   "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Pictures"       "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Saved Pictures" "c:\Users\aaa\Documents" 
mklink /d   "c:\Users\aaa\Camera Roll"    "c:\Users\aaa\Documents" 

例:Google日本語入力の辞書データを他の場所に指定する

cd c:\
move   "c:\Users\aaa\AppData\LocalLow\Google\Google Japanese Input\user_dictionary.db" z:\user_dictionary.db
mklink "c:\Users\aaa\AppData\LocalLow\Google\Google Japanese Input\user_dictionary.db" z:\user_dictionary.db

配下のファイル名を一括置換する

# 確認
find ./ -type f | grep index.html
find ./ -type f | grep .gitkeep

# 配下の index.html を .gitkeep へ置換
find ./ -type f | grep index.html | sed 'p;s|index.html|.gitkeep|g' | xargs -n2 git mv

# 確認
find ./ -type f | grep index.html
find ./ -type f | grep .gitkeep

「SendTo」と「Quick Launch」と「Startup」のパス

C:\Users\[ユーザー]\AppData\Roaming\Microsoft\Windows\SendTo

C:\Users\[ユーザー]\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

C:\Users\[ユーザー]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

C:\Windows\SHELLNEW