yyyb
V2EX  ›  问与答

请教个 vbs 脚本命令参数里有空格运行出错的问题

  •  
  •   yyyb · Apr 23, 2021 · 731 views
    This topic created in 1854 days ago, the information mentioned may be changed or developed.
    bat 批处理里这样写就没问题
    wget -N -P %ProgramFiles%\xxx ftp://user:user@domain/config.json

    vbs 脚本里这样写就出错,
    ws.Run "wget -N -P %ProgramFiles%\xxx ftp://user:user@domain/config.json",0,True
    不管是用%ProgramFiles%还是用绝对路径
    yyyb
        1
    yyyb  
    OP
       Apr 23, 2021
    自己解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1150 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:06 · PVG 02:06 · LAX 11:06 · JFK 14:06
    ♥ Do have faith in what you're doing.