Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can some one point me to a tsr utility/help/skeleton? Only C Gurus!

Status
Not open for further replies.

subra

Programmer
Joined
Aug 6, 2000
Messages
45
Location
IN
I want to write a program to periodically transmit a message. I have a program which already checks whether any thing is there in the outbox and if there is, it transmits the file.

I want to write a program which will automatically create and send a file to the destination at fixed time intervals.

Essentially, my transmission program looks for two files, one - the message file in the outbox and two - a schedule file containing the name and the length of the message file. The message file has a name which depends on the day and the month so that it can be identified. I have already written the code to do so.

My problem is how can i write a program (tsr) which will wait in the back-ground and fire the above program say once every 10 or fifteen minutes. Can any one help?

I work in TURBO-C on DOS only!
Subra


if you find this useful let me know at vksubra@icenet.net
 
hey! before doin that u've to trap timer interrupt service routine and add ur tsr there. For TSRs u look in to the "Mastring MSDos by ray dunkan" and "Assemly language programmin by Peter able".
 
If you want to use TSR:s I suggest checking out this place:

Especially chapter 18, that deals exclusively with TSR:s. The page is all assembly however, but since it's very easy to use inline assembly in Turbo C, and since you're exclusively using DOS I see no problem with using a bit of assembly =)

Hope it's of some use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top