Jump to content

Needing Help On Opening a Program and Timing

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Gengar

Gengar

    Newbie

  • Members
  • Pip
  • 3 posts
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?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Have you tried AutoIt?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Gengar

Gengar

    Newbie

  • Members
  • Pip
  • 3 posts
I'm not sure what that is. I'll have to look it up.

Possibly link me, in case I can't find it?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
autoit at DuckDuckGo
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Abu Ehab

Abu Ehab

    Newbie

  • Members
  • PipPip
  • 11 posts
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