關於用VB寫批次檔
我的批次檔為
@echo off
@command /c wscript \\gm0467\Inv_Script\aqcsi.vbs \\gm0467\Inv_Share
@exit
我想用VB寫 非OLE勘入
請問如合寫呢??因為批次檔會有黑黑的視窗
20點奉上
1 則回答
最佳解答
看不太懂你的問題,如果是要用VB Run程式就用 Shell 指定或使用API
如果是要產生一個批次檔如下
strAry(0)="@echo off"
strAry(1)="@command /c wscript \\gm0467\Inv_Script\aqcsi.vbs \\gm0467\Inv_Share"
strAry(2)="@exit"
intFreeFileNo = FreeFile
Open "c:\a.bat" For Output As intFreeFileNo
For intIndex = LBound(strAry) To UBound(strAry)
Print #intFreeFileNo, strAry(intIndex)
Next intIndex