How to run the exe automatically in vb 6.0 for every one hour
(No one can run the exe) when i will put the exe for my client system,the exe will automatically run....How to create this method???
any one know the answer.pls try to help me.It's very urgent
Thanks %26amp; Regards
Komathi.SHow to run the exe automatically in vb 6.0 for every one hour?
User the timer control in form
set Interval of 1*60*60*100 ms
in timer event write code to run the application EXE
most probably u have to use SHELL
make a EXE of the project
now run ur new EXE
that will call other exe prog at each interval How to run the exe automatically in vb 6.0 for every one hour?
Private Sub RunProgramByHour()
Dim RetVal
RetVal = Shell(';C:\WINDOWS\System32\calc.exe';, 1)
End Sub
--
Then you simply want to let the program sleep for an hour:
RunProgramByHour()
Sleep 3600000 'one hour
RunProgramByHour()
For example, then simply create a loop for it. That's basically how.
The timer is available in VB 6. But why don't you use windows Task scheduler?
All Programmes--%26gt;Accessories---%26gt;System Tools----%26gt; Sheduled Tasks
No comments:
Post a Comment