
修改path變量的另一個方法——CAUTOEXECBAT今天發現 path 變量里有一個路徑 e:我的文檔桌面RichReader 怎么也刪不了...
- 在“系統屬性->高級->環境變量”的 path 里面并沒有這個路徑;
- 把注冊表中含有 RichReader 的項也都刪掉了;
- 重新電腦后這個路徑依然存在于 path 變量中...
Assuming that you have installed the contents of the ZIP file into the directory C:RichReader, then add the following two lines at the end of the AUTOEXEC.BAT file: set PATH=%PATH%;C:RichReaderset RTFLIBDIR=C:RichReader打開 C:AUTOEXEC.BAT,果然:
set PATH=%PATH%;e:我的文檔桌面RichReader另外這個代碼在 Window XP SP2 里并不正確,以上的代碼等同于 set PATH=%path%;%PATH%;e:我的文檔桌面RichReader。難怪我 path 里有那么多的重復路徑。正確的寫法是:
(注:這個代碼是針對 C:AUTOEXEC.BAT,并且我的測試環境是 Window XP SP2。在一般的批處理中 set PATH=%PATH%;e:我的文檔桌面RichReader 這個寫法是正確的。)nclick="copycode($('code0'));">復制代碼
- set PATH=e:我的文檔桌面RichReader

