Is it possible to embed and execute VBScript within a batch file without using a temporary file?

后端 未结 6 895
慢半拍i
慢半拍i 2020-11-22 04:39

People have been embedding and executing VBScript within batch files for a long time. But all the published solutions that I have seen (at the time this question was ori

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 05:41

    I have tried to assemble all solutions in one script at http://www.dostips.com/forum/viewtopic.php?p=37780#p37780.

    There is the batch script converting the most popular languages into a batch file (.js, .vbs, .ps1, .wsf, .hta and historical .pl).

    It works as follows:

    
        :: convert filename1.vbs to executable filename1.bat
        cmdize.bat filename1.vbs
    
    

提交回复
热议问题