|
-
Dec 18th, 2005, 03:38 AM
#1
Thread Starter
Lively Member
How to start a file on start-up.
I know how to make a program start on boot up, but how do I specify the file that I want to start?
Thanks
-
Dec 19th, 2005, 12:35 PM
#2
Re: How to start a file on start-up.
It's not clear exactly what you want to do, but you can have a batch file in the Task Scheduler, that auto-starts. You could open any filel in the batch file, and be able to programmatically change the batch file to open other files.
-
Dec 19th, 2005, 12:38 PM
#3
Re: How to start a file on start-up.
You can also add the name of your program to this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
-
Dec 20th, 2005, 01:46 PM
#4
Fanatic Member
Re: How to start a file on start-up.
What I interpret this to mean is, you have a program but you want to open/load/use a file using your program on startup, not just the program itself. Piece of cake. In the registry where it tells it to load the program, add a paramater... MyProgram.exe "c:\useme.txt". You will have to catch this parameter which holds the value "c:\useme.txt" and then do whatever your program is supposed to do to it. They do this a lot in C/C++ Programming forget what its called... loading arguments... um.. don't recall.
-
Dec 20th, 2005, 01:48 PM
#5
Fanatic Member
Re: How to start a file on start-up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|