Quote Originally Posted by techgnome View Post
What the ...???? Woah... hold on a sec there... what in the world are you doing? You're running an app that's a getting a list of files from the command line and then doing WHAT? Sending the file names one character at a time, to where? Itself? What? That's crazy. Once you hace the file name (form1, line 5) .... just call OpenFile and pass it the filename. I don't get what it is you are doing by sending the file names using a win message like that.

-tg
the command doesn't send a list of files - it sends only 1 file at time !!! For each file selected the command open a new instance of your application ! The new instance send the file name to the first instance and close itself ...