亂貼小站公告欄

終於找到在 windows 7 中替某個程式加上【以系統管理員執行此程式】的方法了!!

這樣的話,我在 Easy_run_class 中新增 PATH 應該就不會遇到什麼問題了

要新增資料到登錄檔裡面

安裝程式都可以代勞~

接下來的比較大的問題...可能就是要怎麼辦找到 JDK 的路徑了吧 (在沒有安裝在預設路徑的情況下)


本文章轉載自:http://www.sevenforums.com/tutorials/316-compatibility-mode.html

1. Open the Start Menu, then type regedit in the search box and press Enter.

2. If prompted by UAC, then click on Yes.

3. In regedit, navigate to the location below. (see screenshot below)

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

Compatibility Mode-reg1.jpg

4. To Run a Program in Compatibility Mode

A) In the right pane of Layers, right click on a empty area and click on New, then onString Value. (see screenshot below)

Compatibility Mode-reg2.jpg

B) Type in the full path of the program's exe file and press Enter, then right click on the full path and click on Modify. (see screenshot below)

Compatibility Mode-reg3.jpg

C) Type in a single or combination of Data values (see tables below) for how you want to run the program as, and click on OK. (see screenshot below)

NOTE: If you use more than one Settings, then you must add them in the order they are in the table below.

[Compatibility Mode (only one)] + space + [Settings (one or more with a space inbetween)] + space + [Privilege Level]

Compatibility Mode-reg4.jpg

Compatibility ModeData Value
Windows 95 WIN95
Windows 98 / Windows Me WIN98
Windows NT 4.0 (Service Pack 5) NT4SP5
Windows 2000 WIN2000
Windows XP (Service Pack 2) WINXPSP2
Windows XP (Service Pack 3) WINXPSP3
Windows Server 2003 (Service Pack 1) WINSRV03SP1
Windows Server 2008 (Service Pack 1) WINSRV08SP1
Windows Vista VISTARTM
Windows Vista (Service Pack 1) VISTASP1
Windows Vista (Service Pack 2) VISTASP2
Windows 7 WIN7RTM

SettingsData Value
Run in 256 colors 256Color
Run in 640 x 480 screen resolution 640x480
Disable visual themes DISABLETHEMES
Disable desktop composition DISABLEDWM
Disable display scaling on high DPI settings HIGHDPIAWARE

Privilege LevelData Value
Run this program as an Administrator RUNASADMIN

創作者介紹

亂貼小站

和風信使 發表在 痞客邦 PIXNET 留言(1) 人氣()


留言列表 (1)

發表留言
  • Syne Art
  • 系統環境變數(HKCU):
    HKEY_CURRENT_USER\Environment

    JDK& JRE 安裝路徑(HKLM):
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft
  • 這個路徑我知道:)
    但是這個東西有的時候會沒辦法用= =
    因為在 windows 7 系統之中
    使用 reg.exe 是有可能需要系統管理者權限的...
    沒有權限,就讀不到QQ
    .
    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6" /v JavaHome > path.txt
    我是會下上面那個指令去讀取這個路徑啦,可是這個真的不穩定QAQ
    想找有沒有能夠提升權限的方法

    和風信使 於 2011/10/03 12:13 回覆

找更多相關文章與討論
【 X 關閉 】

【痞客邦】大學生網路社群使用習慣調查

親愛的讀者,痞客邦希望能了解大學生的網路社群使用習慣,
填問卷即可抽獨家好禮喔!
(注意:關閉此視窗將不再出現)