Run a external program from BASIC?

Status
Not open for further replies.

Benjamin J. Weiner

Usenet Archive
Joined
Jan 6, 2002
Messages
3
Reaction score
0
Does anyone know how i can run an external program from the Microstation BASIC language? I want to run a postscript conversion program from with a maro I use to generate PS files.

Thank You,

Ben Weiner

Time Warner Cable, Albany - Design Department
 
Hi, Mr. Weiner

You can send a keyin 'start xxx' from MicroStation Basic to run a external program.

Foo.
 
Benjamin ...

Does anyone know how i can run an external program from the Microstation BASIC language?

There's an MDL application 'NTBang.ma' that I think you can obtain via the SELECT web site. It lets you use a key-in in MicroStation such as:
!dir *.bat
to execute an operating system command.

With this MDL app., you can construct a BASIC command similar to:

Dim exe As String

exe = "myWindows.exe" ' You will need the full directory path if the ' exe is not found in the %PATH% variable status = MbeSendCommand ("mdl load ntbang") status = MbeSendCommand ("!" & exe)
 
Status
Not open for further replies.

Latest threads

Back
Top