I think QJ means if you make a program that has it's own custom file type, that you can associate the file with the exe that makes it. Like if you made a matrix editor in DBC that saved the files with the extension .mtx - and clicking on any file with .mtx would launch that executable and maybe even load the .mtx parameters into the executable.
If I understand your question QJ, then the answer is yes. When programming the main tool (the exe), there is a function that can receive external string arguments. This function is CL$().
Whatever the name of the program or argument(s) you want can be passed to this variable. If my matrix editor is named mated.exe, then to attach arguments uppon launch, the command line could look like:
mated.exe -argument1 -argument2 filename etc.
Inside my program, that series of strings is passed to CL$() as a single string. I decide what to do with them. I'd have to parse out the string and tell my program what to do with the pieces. Here's a simple example of loading an x file:
obj$=CL$()
if right$(obj$,2)<>lower$(".x")
rem don't load the file
else
rem load the file
load object obj$,1
endif
wait key
saved as myprog.exe
All I want is a filename so the command line to lauch this would be
myprog.exe "monkey.x" or whatever the filename is.
To get it to auto launch in Windows, then you'd have to associate the file type with myprog.exe . You could do it automatically through the registry when someone installs your program or you could do it using Open with... and making it permanent or when in the windows file manager/explorer you use View > Folder Options > File types . Once the association is done, then everytime you double click on a particular file with that extension, it will launch your DB app.
Enjoy your day.