Passing filenames to an application

Hi Guys,

I use the code below to launch Microstation. If I select an unrecognised file format I get an alert as shown below.

Alert

cd "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation"
@async:"C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\ustation.exe" {filepath|noterm}

Is it possible to only launch Microstation when I have a *single recognised file selected?

*Microstation can only open one file at the time.

(Recognised filetypes would be DGN, DWG and DXF.)

Regards

Blueroly

@disablenosel:numfiles=1,type=*.(dng|dwg|dxf)

Docs if needed.

1 Like

Brilliant! thanks Leo, and thanks for the link, I was looking in the wrong place.