Hi all. I have a problem. I have written a compression program which ordinarily processes files dropped into the command line. When I am processing an uncompressed file, I simply slap an extension onto the end of the filename to name the new file. (This way, I don't have to store the old filename in the compressed data and then extract it.)
Now after the compressed file is made you can either drop in into the command line to decompress it, or, as I would like to do, you can simply click on a compressed file, and since the specific extension is associated with the program, it has the same effect as dropping it to the command line.
The problem is, when you click on it, the program is unable to open the file to process it since the file is already open! But I see other programs process files in this way...how could it be done?
My second question is how to access the command line AFTER the program is already open. You know how when you have MS Paint open, you can drop files into it at any time and have them open?
If anyone has any idea how these may work in theory, please let me know!!
Thanx in advance - Sebastian.