Use a variable in file path in .vbs

前端 未结 4 1971
醉话见心
醉话见心 2020-12-21 04:05

Is it possible to usa variable in a path in .vbs. My basic situation is I have a vbs script that will often be run on a computer with one person logged in and run by an admi

4条回答
  •  半阙折子戏
    2020-12-21 04:12

    I guess you meant a script variable. Try this:

    logger = Inputbox("What is ID?","Domain ID")
    Call update("C:\Users\"& logger &"\AppData\Local\stat.ini", strOld, strNew)
    

提交回复
热议问题