Force a VBS to run using cscript instead of wscript

前端 未结 5 1566
予麋鹿
予麋鹿 2020-12-29 07:42

What is the stackoverflow approved (and hence correct) method to force a VBS to run using cscript instead of wscript - irrespective of what the user tries?

A quick G

5条回答
  •  悲哀的现实
    2020-12-29 08:01

    One approach might be to give it another extension instead of .vbs. Say .cvbs for example. Associate .cvbs with cscript.exe not wscript.exe, that way executing or double clicking a .cvbs file will never invoke the wscript.exe.

提交回复
热议问题