• 這是一篇加密文章,請輸入密碼
  • 密碼提示:whoiam
  • 請輸入密碼:

若切換使用者後,發現釘選在下方工具列的捷徑無法開啟,

出現「無法開啟這個項目」的訊息,如下圖:

 

 

且釘選在「開始」功能表的小算盤、小畫家...等,主程式用於system32的捷徑失效時,

可使用此方式解決。

 

 

解決方法:

檢查環境變數「Path」是否過長,超過2047長,重開機使環境變數生效即可。

 

 

--------------------------------------------------

note :

keyword - windir after switch user

 

Cannot resolve %windir% / Cannot modify %path% or %path% being reset on boot

http://superuser.com/questions/527728/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

minotomato 發表在 痞客邦 留言(0) 人氣()

 

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

 

minotomato 發表在 痞客邦 留言(0) 人氣()