I'm not very great in this kind of programming, I'm mostly HTML, PHP, MySQL, Javascript etc.
Though I'm in need of help really bad on something.
I'm in need of creating a .exe (Ex: myprogram.exe) that will do the following:
-Open the file "C:\cygwin\cygwin.bat"
-Then type "./start"
-Then press ENTER
-Then every 3600 seconds, open a seperate myprogram.exe and close the current.
(^ so it pretty much repeats the process)
Is this possible? Any help?
4 replies to this topic
#1
Posted 23 October 2011 - 07:09 PM
|
|
|
#2
Posted 24 October 2011 - 05:15 AM
Have you tried AutoIt?
#3
Posted 24 October 2011 - 03:32 PM
I'm not sure what that is. I'll have to look it up.
Possibly link me, in case I can't find it?
Possibly link me, in case I can't find it?
#4
Posted 24 October 2011 - 07:26 PM
#5
Posted 03 November 2011 - 01:21 PM
Public Class Form1
Dim MyPath As String = "C:\cygwin\cygwin.bat"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.KeyPreview = True
If System.IO.Directory.Exists(MyPath) = True Then
MyPath = MyPath & "./start"
Button1.PerformClick()
Else
MsgBox("Not Exists")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start(MyPath, vbNormal)
End Sub
End Class
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









