I`m writing some automation software to open specific files from specific location when a barcode is scanned. I have it all working but unfortunately it loads a new instance of coreldraw each time. I can't use DDE since the automation software uses the programs command line arguments and I can't find these through google.
Does anyone know what the argument would be for opening files (in the same instance)?
I`m hoping there is a command line argument for this.
But I have a possible alternative that might work with your program ...
I guess your program is currently executing something like
But if you omit the program and execute just the filename, ie
c:\tmp\test.cdr
then windows will look up the appropriate file association, determine that CorelDraw is already running and will probably open the file in the same instance. I can't say for certain, but it does from the dos prompt (with X4 and windows XP).
Thanks, that should work for cdr files well. Now I just have to work out how to do the same for pdfs (Corel is not default app for them)