Ini adalah potongan script dari windows script host yang akan menjalankan suatu program secara berurutan dan mengcreate suatu schedule task untuk menjalankan suatu program.
============================
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "calc.exe"
WshShell.Run "notepad.exe"
WshShell.Run "a.txt"
WshShell.Run "AT 10:33 /interactive taskmgr.exe"
============================
1. set : mendeklarasikan suatu variable bertipe shell wscript dengan nama WshShell
2. WshShell.Run : menjalankan suatu program
3. AT 10:33 /interactive taskmgr.exe : membuat schedule task pada jam 10:33 untuk menjalankan taskmanager
Windows Script Host ( *.vbs )
Label:
Windows Script Host
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar