Hai everybody,
How can i write a C program such that it should automatically execute while logging on into the system.The compiler which i am using is TURBO C++ compiler.The operating system which i am using is WINDOWS XP.
I will be happy if any one helps me regarding this.
Thank you in advance,
Udhaya karthick.
5 1871
Hai everybody,
How can i write a C program such that it should automatically execute while logging on into the system.The compiler which i am using is TURBO C++ compiler.The operating system which i am using is WINDOWS XP.
I will be happy if any one helps me regarding this.
Thank you in advance,
Udhaya karthick.
Hi Udhaya!
Fantastic! i love this topic. Wat you are actually tryin upon is to make a program which shall be memory resident and performs behind the applications. Hmmm.. Wat you can actually do is type in your program in Turbo C compiler. Then, compile it. You shall now have an EXE file in the output directory. in order to make it execute simultaneous to system log on, you shall have to include the .EXE file into the Autoexec.BAT file. Please note that the .EXE file also has to be included into the sytem32 sub-directory of windows directory. Now how you shall include the .EXE file into the Autoexec.BAT file, I think this shouldnt be a problem. Just open the .BAT file in system32 sub directory and see the way several .EXE files are included. Copy one such statement and replace the file name by your .EXE file name. nonetheless, you should have the .EXE file in the system32 sub directory.
think thats enough to keep you from executing your files the way u wish them to. This is actually the way TSR's work. (Terminate and Stay Resident).
Let me know if it helps you.
regards
CyberKing
Hai everybody,
How can i write a C program such that it should automatically execute while logging on into the system.The compiler which i am using is TURBO C++ compiler.The operating system which i am using is WINDOWS XP.
I will be happy if any one helps me regarding this.
Thank you in advance,
Udhaya karthick.
under XP you can schedule programs to start when you want.
click Start, All Programs, Accessories, System Tools and Scheduled Tasks
you then add a scheduled task
under XP you can schedule programs to start when you want.
click Start, All Programs, Accessories, System Tools and Scheduled Tasks
you then add a scheduled task
Thank u for ur help!
Its working fine.But what the thing i ask is that the program should do this....
Any idea?
Regards,
Udhaya
Hi Udhaya!
Fantastic! i love this topic. Wat you are actually tryin upon is to make a program which shall be memory resident and performs behind the applications. Hmmm.. Wat you can actually do is type in your program in Turbo C compiler. Then, compile it. You shall now have an EXE file in the output directory. in order to make it execute simultaneous to system log on, you shall have to include the .EXE file into the Autoexec.BAT file. Please note that the .EXE file also has to be included into the sytem32 sub-directory of windows directory. Now how you shall include the .EXE file into the Autoexec.BAT file, I think this shouldnt be a problem. Just open the .BAT file in system32 sub directory and see the way several .EXE files are included. Copy one such statement and replace the file name by your .EXE file name. nonetheless, you should have the .EXE file in the system32 sub directory.
think thats enough to keep you from executing your files the way u wish them to. This is actually the way TSR's work. (Terminate and Stay Resident).
Let me know if it helps you.
regards
CyberKing
Thanks for replying me but the thing is i don't find the Autoexec.BAT file in the system32 folder.
Can u explain me more. if u don't mind.
Thank u in advance,
Udhaya
Thanks for replying me but the thing is i don't find the Autoexec.BAT file in the system32 folder.
Can u explain me more. if u don't mind.
Thank u in advance,
Udhaya
Try doing a search of your computer - mine is not located in system32 either.
horace's idea is easier and will accomplish the same thing - or are you trying to make this program some sort of daemon?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: vishal |
last post by:
hi
how can i get the file name from which the current executing file is
called.
i m making a scrript which will be called from many other scripts.
this script performs some calculation and then...
|
by: chris.dunigan |
last post by:
I'm looking for an example of how to execute an existing DTS package
from an
ASP (VB)script and would appreciate any and all response. I don't
even
know if it's possible
Thanks
- Chuck...
|
by: Jibey |
last post by:
Hello:
I'm facing a very strange problem.
When I run my Web application in Visual Studio.NET the Page_Load event is not executing. Other events like a Button_Click are executing.
It doesn't...
|
by: David R. |
last post by:
Hello all,
I would like to generate a Sql-Script-File and a Batch-File to execute the
Batch-File over C#-Code and use the SQL-File as an Input-File for the command
"osql" in the Batch-File.
I...
|
by: tshad |
last post by:
I thought I understood how the SaveViewState is working and was trying to
use this (as per some code I found) to detect refreshes. It seemed to be
working but I found that the SaveViewState was...
|
by: lovecreatesbea... |
last post by:
K&R 2, sec 2.4 says: If the variable in question is not automatic, the
initialization is done once only, conceptually before the program
starts executing, ... .
"Non-automatic variables are...
|
by: Nate |
last post by:
Hello,
I am looking for a method to automatically declare variables in C.
I'm not sure if there is a good way to do this, but I had something
like this in mind...
int i;
for(i = 1; i < 4;...
|
by: AnuSumesh |
last post by:
hi
I want to submit the form and click the link on body load event. i m using the following code:
<script>
Function clicklinl()
{
document.getElementById("back").click();
}
|
by: RaviRajhulk |
last post by:
I have tried executing executing a batch file from a perl code using
system("start c:\\temp\\sample.bat")
but it is not executing ,Is there any way to execute batch file from a perl code
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |