Hello Guest it is April 14, 2021, 02:17:58 PM

Author Topic: Problem launching external editor  (Read 3140 times)

0 Members and 1 Guest are viewing this topic.

Problem launching external editor
« on: November 14, 2006, 09:03:47 PM »
I seem to have run into a problem with launching an editor from Mach 3, but I'm not sure if this has been discussed before.  The problem appears when you try to assign an editor whose path has spaces in it.  Like Wordpad for example:

"C:\Program Files\Windows NT\Accessories\wordpad.exe"

Notepad works fine because it's path doesn't have any spaces in it:

"C:\Windows\notepad.exe"

This problem came up when I tried to send a G-Code file to NCPlot.  I am NCPlot's developer, so I was able to verify that the data being passed was everything after the first space in the editor's path.  So, instead of just getting the name of the file to open, I am also getting part of the pathname as well.

The version of Mach 3 I tried this with is R1.84

So, I guess I'm asking if anybody else has run into this.

Thanks,
Scott
Re: Problem launching external editor
« Reply #1 on: November 14, 2006, 10:43:01 PM »
I just tried assigning wordpad in ver 2.0 and got an error message.  Wordpad does open but, the message says 'failed to open document'.  I tried assigning Micro Word (winword.exe) and it works fine.

HTH,

Sid
Re: Problem launching external editor
« Reply #2 on: November 15, 2006, 11:37:50 AM »
A work around for this problem is to use windows short file/path names.  After clicking the browse button paste the following in the filename box.  Change the drive letters to match your system:

For wordpad - C:\Progra~1\Window~1\Access~1\wordpad.exe

or for NCPlot - M:\Progra~1\NCPlot\NCPlot.exe

Mark
Re: Problem launching external editor
« Reply #3 on: November 15, 2006, 01:23:40 PM »
Mark,

U DA MAN!!!   

Pure Genius!  That works perfect!

Thanks,
Sid
Re: Problem launching external editor
« Reply #4 on: November 17, 2006, 09:09:25 PM »
Mark,

That's beautiful!! Thanks!

Scott