Code:
'Delay time 20 seconds
WScript.sleep 20000 <--- This will delay the program from running (20 seconds before program runs)
Dim WshShell, oExec
Set WshShell = WScript.CreateObject("WScript.Shell")
'Close all background Programs
Set oExec = WshShell.Exec("E:\Downloads\CloseMe\x64\CloseMe.exe") <--- This program will close all running program on the background
Set WshShell = Nothing
WScript.Quit
This is my code..
Good day istoryans,
i want to ask help in programming this further, since my program works when i remove my specific USB device.
i connect my vbscript to a 3rd party program that will trace if the specific USB is been remove and the vbscript will do the job that i want. i have problem with this script that i have made, since i am not a very knowledgeable computer programmer, that's why i ask help.
Prerequisite: (or things i wanted to my new program)
1. My vbscript works, but i want a click button to stop my script from counting to prevent the program to run.
- what i mean, i want to stop my vbscript in counting the delay and aboard the operation.
Please istoryans help me with my problem..
Hope to find answers to this site..
x