Executing a file at startup?
Hi.
I was wondering about how you might go about executing a file as you log in to your account. For instance, I want to run a file that prompts the user of the date, and any other information as you log-in. Might I need a registry entry or such?
EDIT: I would like this to be performed after a complete restart. i'm using XP
Thanks,
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
What happnens if I want to execute this on another computer, which hasn't got this enabled? What should I do then?
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
Ok, so how would I copy the file across to the folder using code?
Thanks
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
What does argv[0] do? And where should I use it? Also, what declaration do you need for a system command?
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
Do you have any coding I could use to carry out a simple task of copying the .exe into the startup folder?
Thanks
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
You know, cosmos22, playing around with another person's computer really isn't funny. In fact, it is the kind of crap warez dorks and wannabes do.
Why don't you do something that will be both appreciated and cool?
Like write a simple video game.
Or write a cool screen saver you and your friends can use.
Both of these are impressive tasks.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
I didn't say he had malicious intent. (In fact I don't really think he does.)
What I said was he'd have more fun doing something constructive.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
I certainly don't intend on releasing my code in any way, I purely do it for educational purposes, for my own interests. I'm not stupid enough to release these files over the internet.
prushik, you say you've done this sort of thing before, could I please take a look at an example of your source code, as I'm still not sure.
Thanks
EDIT oh, and Duoas, I have written several flash based room escape style games before. I have also made money from sponsorship for each one.
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
Thank you, I will test it out now. :) I'll let you know quickly if I come across an error... And yes, I have only constructive purposes alongside my programs.
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
Wow, it works brilliantly. Thank you! :)
From then on, when you boot the computer up, will it run the program?
For instance, if I made a program that displayed a message saying "Hello" that was inside the folder, it would boot it up?
Thanks again, :)
cosmos22
Junior Poster in Training
80 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0