how do i get my program to compile and run as soon as it startup my computer?
thanx
how do i get my program to compile and run as soon as it startup my computer?
thanx
prepare a batch file and include it in the startup folder
how to u prepare a batch file?
The program starts the computer? How can the program do something if it hasn't been compiled yet? Do you mean "as soon as my computer starts"?Originally Posted by sniper22
The batch file mentioned by qqqqxxxx would probably need to call some sort of make command or command-line compiler/linker utility and then (depending on whether or not the compiler/linker was successfull or not) call the compiled program.
If you're on a Windows/DOS system you can just open a text editor and type in the necessary commands (like changing to the directory where the program is stored and running the above mentioned "make" command or command-line compiler) and then save the file with a ".bat" extension. Then add that batch file to your systems startup folder as already stated.Originally Posted by sniper22
All of these things depend on your operating system and particular compiler you have installed.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
Which directory is the startup folder?
Operating Systems:
- Ubuntu 9.04
- XP
Compiler: gcc
On my Windows XP box it is under C:\Documents and Settings\<my user name>\Start Menu\Programs\Startup.Originally Posted by Ideswa
You can add a shortcut to the batch file you want to have run at system startup directly to that folder and it will get run when you log on (as that particular user).
You can also go into control panel and use the Scheduled Tasks option and find/select the batch file and then select the "Perform this task when my computer starts" option.
Of course that's all Windows. Don't know what would be required under the Linux environs.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
i dont know whats wrong with this code, it enters method, but it doesnt enter while loop
what while loop? </hint>Originally Posted by sniper22
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT