1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
#include <stdio.h>
#include <stdlib.h>
int main(int argc,char *argv[]){
char str[100]="start D:\\sam\\MadEdit-0.2.9.1\\MadEdit.exe"; /*這是你文字編輯器的路徑*/
if(argv[1]){ /*若後面有接引數*/
int i;
sprintf(str,"%s \"",str,argv[1]); /*接上雙引號*/
for(i=1;argv[i];i++) /*9,10行接上引數*/
sprintf(str,"%s %s",str,argv[i]);
sprintf(str,"%s\"",str); /*接上雙引號*/
}
system(str); /*執行*/
return 0; /*回傳*/
}
關於要如何覆蓋……請參考Notepad++網頁
安裝步驟:
* 備分原始的 Notepad.exe 程式。
* 複製你下載的 Notepad++ 啟動程式(notepad.exe)到以下的四個目錄(以下列的順序):
~~~1. c:\windows\servicepackfiles\i386
~~~2. c:\windows\system32\dllcache
~~~3. c:\windows\system32
~~~4. c:\windows
沒有留言:
張貼留言