2009年9月28日 星期一
2009年9月15日 星期二
[IE] 設定 IE 檢視原始檔功能的關聯程式
[IE] 設定 IE 檢視原始檔功能的關聯程式
1. 執行 regedit, 啟動”登錄編輯程式” (執行”開始 > 執行”命令, 於”開啟”一欄輸入”regedit”, 按下”確定”鈕)
2. 尋找 “HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Internet Explorer > View Source EditorEditor > Editor Name” 目錄
3. 開啟唯一的參數”(預設值)”設定畫面
4. 將”數值資料”一欄的值改成你想要啟動的應用程式, 譬如: UltraEdit-32 Text Editor 是 “C:\Program Files\IDM Computer Solutions\UltraEdit-32\uedit32.exe”
5. 如果將此值設為空白,會用系統預設的程式開啟,至於是那一個,就不得而知了
1. 執行 regedit, 啟動”登錄編輯程式” (執行”開始 > 執行”命令, 於”開啟”一欄輸入”regedit”, 按下”確定”鈕)
2. 尋找 “HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Internet Explorer > View Source EditorEditor > Editor Name” 目錄
3. 開啟唯一的參數”(預設值)”設定畫面
4. 將”數值資料”一欄的值改成你想要啟動的應用程式, 譬如: UltraEdit-32 Text Editor 是 “C:\Program Files\IDM Computer Solutions\UltraEdit-32\uedit32.exe”
5. 如果將此值設為空白,會用系統預設的程式開啟,至於是那一個,就不得而知了
2009年9月9日 星期三
2009年9月1日 星期二
Javascript 寫入檔案範例
//寫檔案
function WriteToFile(text) {
var fso = new ActiveXObject('Scripting.FileSystemObject');
var dateObj = new Date();
var temp ='';
temp = temp + dateObj.getYear();
temp = temp + (dateObj.getMonth()+1);
temp = temp + dateObj.getDate();
temp = temp + dateObj.getHours();
temp = temp + dateObj.getMinutes();
temp = temp + dateObj.getSeconds();
var folder ='D:\\error-'+temp+'.txt';
var s = fso.CreateTextFile(folder, true);
s.WriteLine(text);
s.Close();
}
function WriteToFile(text) {
var fso = new ActiveXObject('Scripting.FileSystemObject');
var dateObj = new Date();
var temp ='';
temp = temp + dateObj.getYear();
temp = temp + (dateObj.getMonth()+1);
temp = temp + dateObj.getDate();
temp = temp + dateObj.getHours();
temp = temp + dateObj.getMinutes();
temp = temp + dateObj.getSeconds();
var folder ='D:\\error-'+temp+'.txt';
var s = fso.CreateTextFile(folder, true);
s.WriteLine(text);
s.Close();
}
2009年8月5日 星期三
訂閱:
文章 (Atom)