Opening With Default Program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lumpybanana247
    New Member
    • Apr 2007
    • 134

    Opening With Default Program

    i finally found out how to set my registry to open a certain extension with my little text editor.
    For instance, when you set notepad to open the file, you just set the value to C:\WINDOWS\NOTE PAD.exe
    so, i set it to my program instead

    Now, when i click on a file associated with my program, it opens the text editor, but what would i put in my script to make it load the file too?

    thank you much
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    I'm not sure this is a C++ / C question - should it be placed in the Windows Forum?

    Comment

    • lumpybanana247
      New Member
      • Apr 2007
      • 134

      #3
      well, i think i have the registry part down, but i believe its my c++ source that needs to be changed. am i right?

      Comment

      • ilikepython
        Recognized Expert Contributor
        • Feb 2007
        • 844

        #4
        Originally posted by lumpybanana247
        well, i think i have the registry part down, but i believe its my c++ source that needs to be changed. am i right?
        I think you need to make your program accept command line arguements and then call the program with those command arguements.

        Comment

        Working...