V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shunconf
V2EX  ›  程序员

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

  •  
  •   shunconf · 2020-09-10 10:25:24 +08:00 · 1341 次点击
    这是一个创建于 1295 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    第 1 条附言  ·  2020-09-10 15:16:20 +08:00
    ## 代码是可以运行的,但是软件默认还是读到 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-09-10 10:30:27 +08:00
    58806956
    shunconf
        3
    shunconf  
    OP
       2020-09-10 10:58:37 +08:00
    @Vegetables 我都研究好久了,envset,path,D:\Program Files (x86),不行的
    Vegetables
        4
    Vegetables  
       2020-09-10 11:10:58 +08:00
    Vegetables
        5
    Vegetables  
       2020-09-10 11:13:50 +08:00
    @shunconf ahk 文档里给的变量名字是 A_ProgramFiles 或 ProgramFiles
    shunconf
        6
    shunconf  
    OP
       2020-09-10 11:14:01 +08:00
    @Vegetables 这个是要在很多台电脑上用的,不是我一个人用呢 而已还是 ad 域用户
    Vegetables
        7
    Vegetables  
       2020-09-10 11:38:22 +08:00
    入域咱就不懂了...
    loading
        8
    loading  
       2020-09-10 11:40:29 +08:00 via Android
    ad 域下发系统变量,你从变量读取。
    shunconf
        9
    shunconf  
    OP
       2020-09-10 13:37:38 +08:00
    @loading c:\Program Files (x86)这就是默认的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3012 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:04 · PVG 08:04 · LAX 17:04 · JFK 20:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.