- Jul 10 Sun 2016 22:17
2016 回歸blog雜言
- Jul 08 Fri 2016 23:32
解決Win 7 切換使用者後%windir%捷徑失效
若切換使用者後,發現釘選在下方工具列的捷徑無法開啟,
出現「無法開啟這個項目」的訊息,如下圖:
且釘選在「開始」功能表的小算盤、小畫家...等,主程式用於system32的捷徑失效時,
可使用此方式解決。
解決方法:
檢查環境變數「Path」是否過長,超過2047長,重開機使環境變數生效即可。
--------------------------------------------------
note :
keyword - windir after switch user
Cannot resolve %windir% / Cannot modify %path% or %path% being reset on boot
Windows 7's PATH and environment variables are corrupted
http://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted
- Feb 05 Wed 2014 11:41
[Java] 循環語句 for -- (冒號寫法)
public class test {
public static void main(String[] args) {
int [] list = {1,2,3,4,5,8};
for(int a :list) { //表示從list陣列中,從陣列第一個值取值取到最後一個值
System.out.println(a + "-888");
}
// ------------------ 等於以下寫法 ------------------
for(int b = 0;b <= list.length - 1;b++){
System.out.println(list[b] + "-777");
}
}
}
結果 :
1-888
2-888
3-888
4-888
5-888
8-888
1-777
2-777
3-777
4-777
5-777
8-777