V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yyyb
V2EX  ›  问与答

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

  •  
  •   yyyb · Apr 23, 2021 · 679 views
    This topic created in 1829 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   ·   2903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.