V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
shunconf
V2EX  ›  程序员

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

  •  
  •   shunconf · 2020 年 9 月 10 日 · 1729 次点击
    这是一个创建于 1962 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    第 1 条附言  ·  2020 年 9 月 10 日
    ## 代码是可以运行的,但是软件默认还是读到 c:\\Program Files 路径

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

    Run PotPlayer.exe


    ```
    9 条回复    2020-09-10 13:37:38 +08:00
    lsj8924
        1
    lsj8924  
       2020 年 9 月 10 日
    58806956
    shunconf
        3
    shunconf  
    OP
       2020 年 9 月 10 日
    @Vegetables 我都研究好久了,envset,path,D:\Program Files (x86),不行的
    Vegetables
        4
    Vegetables  
       2020 年 9 月 10 日
    Vegetables
        5
    Vegetables  
       2020 年 9 月 10 日
    @shunconf ahk 文档里给的变量名字是 A_ProgramFiles 或 ProgramFiles
    shunconf
        6
    shunconf  
    OP
       2020 年 9 月 10 日
    @Vegetables 这个是要在很多台电脑上用的,不是我一个人用呢 而已还是 ad 域用户
    Vegetables
        7
    Vegetables  
       2020 年 9 月 10 日
    入域咱就不懂了...
    loading
        8
    loading  
       2020 年 9 月 10 日 via Android
    ad 域下发系统变量,你从变量读取。
    shunconf
        9
    shunconf  
    OP
       2020 年 9 月 10 日
    @loading c:\Program Files (x86)这就是默认的
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2255 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:12 · PVG 09:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.