run time location question
I'm writing a compression program using the paq8f program and want to make it as easy to use for a userbase that do not want to open command line.
http://www.cs.fit.edu/~mmahoney/compression/#paq8
I have been unable to compile the paq8f C source into a windows dll so I am just using the compiled exe for this program. This means that inside my code I am calling another exe to do the compression when I need to. The issue I am having is that I want to write the program so that a user can drop a file onto the exe, and judging by the file extension the program will either compress or uncompress the file/folder.I have noticed that when you drop a file onto the exe and it begins to run, it does not run in the location of the exe, but rather at the profile home of the user doing the dropping. for example I will drop a file on the exe and a log file I spit out sees the curDir() as F:\ which is my home if I open up command prompt. so at the time of execution the compressor.exe does not know where the paq-8f.exe is located and I would need to do a recursive search on the C:\ drive for it.
anyone know how to solve my issue? I'm looking to see if the run time directory can be found or not.
thanks,
Kinnell

