How do you pass a javascript variable as an argument to a vbscript function (in the context of HTAs)?

后端 未结 2 1593
鱼传尺愫
鱼传尺愫 2021-01-21 14:40

I am writing an HTA and I need to pass a variable that I have in Javascript to a VBScript function. Can you please let me know how to do this? Here is a (nonworking) example of

2条回答
  •  孤独总比滥情好
    2021-01-21 15:34

    Your example should work, sure its not doing what you expect because var closer = "C:\Program Files"; should be var closer = "C:\\Program Files"; ?

提交回复
热议问题