Tech Support > Microsoft Windows > Syntax for opening with double mouse click
Syntax for opening with double mouse click
Posted by Tim on December 15th, 2005


Hello All,

I have installed a CAD software called Unigraphics NX3 (NX3 for short).
This install associates all files with the extension PRT with NX3, and double
clicking a PRT file results in the file opening in NX3 just fine, no matter
the location or directory/folder name. That all works just fine.

My issue comes up when using a batch file that forces the software to run
through a customized environment. The new open action is now defined as
follows:

"D:\UGNX3\NX3_Toolkit\gmlaunch4d\gmlaunch4d.ba t" -ASSOC=Native -RETRIEVE="%1"

This works fine until I try to open a file from a folder/directory with
spaces in the filename. Can anyone tell me what I'm missing from above? I'm
not an expert at this by any means, but I am pretty sure everything is fine
until the last switch/argument or whatever it's called ("%1"). Is there
another switch/argument that can be used? To reiterate, everything up to
RETRIEVE is necessary & not affecting the result.

Thanks in advance.


Similar Posts