Howdy y’all. A friend asked to make an application as a plugin for the radio station he has. Application to update the “Now playing” list with each new song playing on the radio. For this it has to check a text file, read the name of the song, and if it isn’t the same as before – send it to the server.
Simple concept for a simple application.
Program is a console app, so it should be ran from the command line (cmd). Or if you want to hide the window and make it run in the background, do this:
Create a shortcut for the application and name it the same as the application itself. Go to properties and add the arguments (see below).
- time – interval in seconds to check the file
- file_name – full path including the name of the file of course
- URL – where to send the data. URL should be like this: http://something.lt/script.php?=
So a full example would be like this: eteryje.exe 10 c:\songs.txt http://something.lt/script.php?=