Jump to content

Best Programming Language to use in this situation and how?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
kafley12

kafley12

    Newbie

  • Members
  • Pip
  • 3 posts
I want to create a small program that is able to automatically create a file on a specific folder when a specific program starts up and be able to delete that file automatically when that program closes. Please also give me the basic syntax for this if you know it.

#2
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
For what your doing, which is a pretty simple task, I would advise using a high level language, for simplicities sake (however you could even use shell for your task). An example of this is Java. I would then implement some sort of window handler that would detect form open and form close. Then when the form opens I would save a file in append mode and when closing would delete the same file.

#3
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
Java may or may not be able to detect other running applications. AutoIt comes to mind as a fairly simple tool for this type of thing, if you're on a Windows platform.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
kafley12

kafley12

    Newbie

  • Members
  • Pip
  • 3 posts

WingedPanther said:

Java may or may not be able to detect other running applications. AutoIt comes to mind as a fairly simple tool for this type of thing, if you're on a Windows platform.
Thanks for this great idea, but I'm not really up for leaning yet another programming language. If you already know how to use it, please post the basic syntax for my situation or at least a tutorial on this language. (I have it downloaded by the way ^^

#5
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
It's been a while since I used it, and I'm now running Linux.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
kafley12

kafley12

    Newbie

  • Members
  • Pip
  • 3 posts
Well thanks anyway, and I actually did figure out a way to make AutoIt check for any active windows and run the code to create a file, so no worries. :thumbup1:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users