I have this certain vbs/batch file. I want to open it with html. 1. Can I start the file only on my computer or 2. Can I have the html file create a batch file with the code:
@echo off
call use.bat %usage%
set num=%usage%
del use.bat
echo set /a usage=%num%+1 >use.bat
exit
Thank You! BTW: If I'm not too specific let me know. :)
You can try using <script type="text/vbscript">
to enclose the VBS code. However, this might only work in older versions of IE.
References:
http://www.csidata.com/custserv/onlinehelp/vbsdocs/vbs9.htm
https://www.quora.com/How-do-I-execute-an-external-vbs-vbscript-from-HTML-page
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.