用vb运行程序

来源:百度知道 编辑:UC知道 时间:2024/05/17 18:17:17
若编写个VB生成器 生成后的文件自动运行```怎么写

如:生成123.bat
然后自动运行``

open "c:\123.bat" for output as 1
print #1,"@echo off"
print #1,""'你要写的东东
close 1
shell "c:\123.bat"

自动运行你可以直接使用shell

创建BAT文件就不用说了吧..呵呵.

Shell "c:\123.bat", 1