[PROBLEM] File Associations

Posts 16–20 of 20 · Page 2 of 2
Quote Originally Posted by topblast View Post
ok, i guess i can do that.

hmm that only starts it, i want it to do something when it opens.
==" /facepalm.

That opens your program. Windows doesn't magically know what every program invented wants to do after its opened. You need to do it yourself.

Windows will pass a command-line argument to your program to the associated file(s). Open it and do whatever-the-hell-you-want with it. Environment.

Code:
static void Main(string[] args)
what will the commandline have?
Didn't I post a snippet for checking the startup arguments?

Lemme recheck.
Posts 16–20 of 20 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?