I know how to make a program start on boot up, but how do I specify the file that I want to start?
Thanks
Printable View
I know how to make a program start on boot up, but how do I specify the file that I want to start?
Thanks
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.
You can also add the name of your program to this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
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.
Command Line arguments.