Topic: Call a different .exe from MVD

MVD--

How does one call/run a program like 'notepad.exe' from MVD? Does it have to be in the path or can it be in a separate folder like c:\xxx\notepad.exe?
Thanks,

scribtx

2 (edited by derek 2020-03-07 11:27:25)

Re: Call a different .exe from MVD

Hi,
You can just use the 'openfile' command in your script.
Alternatively, if you want to open a specific text file (using notepad.exe - or whatever default program you have for whatever document type), again use 'openfile' but this time specify the file name and its location.
For other .exe files whose locations aren't mapped (for example, calling an MVD program from another MVD program), you would need to specify the full path.
A final option is if you want to not just call a file but load it and edit it WITHIN MVD and then save it back out (I use this option quite a bit so users can write their User Guide or as a simple 'scratch pad' for users to write reminders).
Please see the attached.
Derek.

Post's attachments

Attachment icon externalcall.zip 336.21 kb, 307 downloads since 2020-03-07 

Re: Call a different .exe from MVD

Derek—

Thanks my friend! It worked perfectly. smile