Results 1 to 5 of 5

Thread: How to start a file on start-up.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    86

    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

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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

  4. #4
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628

    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.

  5. #5
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628

    Re: How to start a file on start-up.

    Command Line arguments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width