Question
Thread display: Collapse - |
All Answers
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Making an Auto-backup system?
EDIT: Developed a workaround for the original problem. But another one has arisen so I guess I'll post it here rather than making a whole new thread.
I'm looking to have a .bat file run every 10 minutes (Xcopy for backups), with the possibility of having a checkbox that can disable it from running (so the user manually clicks the Sync button to run a backup). This .bat file, as stated, is run by clicking a sync button, and this is the button's code:
Private Sub Button1_Click_2(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim p As New System.Diagnostics.Process()
p.StartInfo.FileName = "S:\Administration\SCRIPTS SYSTEM.cmd"
p.StartInfo.CreateNoWindow = True
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.Start()
End Sub
How do I add and configure a timer command to run (or even push/fire the button) the .bat every 10 minutes?
Thanks :)
~Julian