VBสคริปคำสั่งรันโปรแกรม --------------------------------------------------------------
จุดประสงค์: สั่งเปิดโปรแกรมเครื่องคิดเลข
--------------------------------------------------------------
strProgramPath = "C:\Windows\system32\calc.exe"
set objShell = createobject("Wscript.Shell")
objShell.Run strProgramPath
------------------------------------------------------
อันนี้เป็นสคริป ที่ควรหัดเขียน เพราะสั้น จำได้ง่าย ใช้เขียนเป็นคำสั่ง เปิด-รัน ได้เช่นกัน
--------------------------------------------------
Set WshShell = CreateObject ("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\calc.exe"
---------------------------------------------------------------
การเขียนโปรแกรม VB6
อ้างแหล่งที่มา:
http://www.lks.ac.th/kuanjit/menu_vb.htm