V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
shunconf
V2EX  ›  程序员

AutoAHK 中,如何自定义 Program Files (x86)路径

  •  
  •   shunconf · Sep 10, 2020 · 1806 views
    This topic created in 2060 days ago, the information mentioned may be changed or developed.

    系统默认为:c:\Program Files (x86)

    那么我需要载入的 d:\Program Files (x86)路径

    让需要安装的软件只读到 d:\Program Files (x86)这个路径,请问怎么实现

    Supplement 1  ·  Sep 10, 2020
    ## 代码是可以运行的,但是软件默认还是读到 c:\\Program Files 路径

    ```
    #NoEnv
    ;SetWorkingDir, %A_ScriptDir%
    EnvSet, ProgramFiles,D:\Program Files

    Run PotPlayer.exe


    ```
    9 replies    2020-09-10 13:37:38 +08:00
    lsj8924
        1
    lsj8924  
       Sep 10, 2020
    58806956
    shunconf
        3
    shunconf  
    OP
       Sep 10, 2020
    @Vegetables 我都研究好久了,envset,path,D:\Program Files (x86),不行的
    Vegetables
        4
    Vegetables  
       Sep 10, 2020
    Vegetables
        5
    Vegetables  
       Sep 10, 2020
    @shunconf ahk 文档里给的变量名字是 A_ProgramFiles 或 ProgramFiles
    shunconf
        6
    shunconf  
    OP
       Sep 10, 2020
    @Vegetables 这个是要在很多台电脑上用的,不是我一个人用呢 而已还是 ad 域用户
    Vegetables
        7
    Vegetables  
       Sep 10, 2020
    入域咱就不懂了...
    loading
        8
    loading  
       Sep 10, 2020 via Android
    ad 域下发系统变量,你从变量读取。
    shunconf
        9
    shunconf  
    OP
       Sep 10, 2020
    @loading c:\Program Files (x86)这就是默认的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 08:23 · PVG 16:23 · LAX 01:23 · JFK 04:23
    ♥ Do have faith in what you're doing.