วิธีการให้ทำการเขียนคำสั่ง VB มาอ่านไฟล์ .bat
1.ทำการสร้างไฟล์ VB เพื่อเขียน script เพื่อไปอ่านไฟล .bat runhidden.vbs
โค้ด: เลือกทั้งหมด
Set oShell = CreateObject ("Wscript.Shell")
Dim strCMD
strCMD = "cmd cd /c C:\xmlrpc_scanfinger\runauto.bat"
oShell.Run strCMD, 0, false
2.ให้ไปเปลี่ยน action ใน task schedule จากเดิมที่รัน ไฟล์ .bat มารันไฟล์ VB แทน
อ้างอิง
https://superuser.com/questions/478052/windows-7-task-scheduler-hidden-setting-doesnt-work
https://serverfault.com/questions/9038/run-a-bat-file-in-a-scheduled-task-without-a-window/9042
https://www.robvanderwoude.com/battech_hideconsole.php