Quote: "Thanks! How do I find the directory that the file is in?"
I don't know what you mean. Aren't you using an installation program that would store the files where you specifiy?
Quote: "Edit: Does the CL$() return the file extension? If not, how would you manually apply the extension in the app?"
In the case I'm suggesting, cl$() will return the entire path of the myfile.awesome file (ex. d:\game\data\myfile.awesome) if you double click on myfile.awesome. If you have associated the extension .awesome to the exe (let's say the exe is called game.exe) , then game.exe will open, cl$() will have the path and filename because .awesome has been associated to it, then if you have programed your app or game to do something with the filename returned in cl$(), it will do so.
Now, if your installer hasn't associated game.exe with the extension .awesome, then you need to do that manually. If it is a game or app that you are distributing, then you would handle the association through registry keys. But this can be dangerous to the operating system if you don't know what you are doing. Do a search on the internet for Registry keys and file associations and you'll find the relavent information and the proper keys to change. Look up HKEY_CLASSES_ROOT. That should get you started.
Your app can use the built in DBC registry commands or you can create a batch or registry file that you can launch using the EXECUTE FILE command.
Again, a word of caution, messing with the registry can be very bad if you make a mistake!
Enjoy your day.