0

Hi
I want c language code to open my web browser (IE or Firefox) and close it after 2 min. can any one help me?? please i need it.

4
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by Software guy
0

this doesn't make any sense, but if you must do something like this, then you need to get into the deep details of the windows API. since you're even asking this question, then you have no chance of successfully navigating the Windows API

therefore you will have to do something sloppy like::

use a system call to open your application
delay 2 minutes
use a system call to kill the process, with something like this

.

Edited by jephthah: n/a

-1

Opening a file and closing a file has same importance however it depends on the situation. Because in C if your software is running a process which updates a text file and if you do not kill that process, and instead start a new process for updating file using C. The text file will have messed up data. Because the same text file is being used for two updates. Hope it makes sense.

Sorry if I am being annoying ,but i have been through this before and it gave me a huge problem in one of my projects. So moral of the story is:

"Importance of opening a file == Importance of closing a file"

Votes + Comments
bumping old thread to make a comment that is irrelevant
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.