Author Topic: [SOLVED] "Startapp" for Explorer: does not open the file  (Read 2964 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
[SOLVED] "Startapp" for Explorer: does not open the file
« on: September 15, 2013, 08:35:06 AM »
I tried to use "Startapp" to open "every" file like the explorer does with double-click.

There are some posts here which show this way:
Code: [Select]
(startapp "explorer" "test.xls") -> starts Excel
(startapp "explorer" "test.ctb") -> starts plotstyle-editor

Seem to be simple; I tried
Code: [Select]
(startapp "notepad" "c://muster.ini") -> opens file with notepad. Fine.
33
(startapp "explorer" "c://muster.ini") -> opens explorer in AutoCAD-folder, no notepad, no ini
33
Any idea what could be wrong?

(PS: DosLib can not be used ...)
« Last Edit: September 15, 2013, 09:09:42 AM by Peter2 »
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

ribarm

  • Gator
  • Posts: 3257
  • Marko Ribar, architect
Re: "Startapp" for Explorer: does not open the file
« Reply #1 on: September 15, 2013, 08:41:21 AM »
Have you tried :

"c:\\muster.ini"

instead of :

"c://muster.ini"
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Peter2

  • Swamp Rat
  • Posts: 650
Re: "Startapp" for Explorer: does not open the file
« Reply #2 on: September 15, 2013, 08:45:35 AM »
Have you tried :...
Yes. I tried backward and forward, single and double ....

And of course I tried also to double-click to the file inside explorer: It was opened with notepad as expected.

Here was the same problem: http://www.theswamp.org/index.php?topic=44768.0

But the solution was focused to open a browser; I need to open the depending software.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

Peter2

  • Swamp Rat
  • Posts: 650
Re: "Startapp" for Explorer: does not open the file
« Reply #3 on: September 15, 2013, 09:09:15 AM »
Solved!

Sh.....  :ugly:

I had a confusion between my keyboard and my keyboard settings, ans so I entered the backslash with "Alt+092". But I made I typo and I wrote "\\" instead of "\\".

Now you want to say: Hmmmh - where is the difference??? It is the same!  :-o

No. Copy it to your editor ...

In the meantime I found another simple way:
Code: [Select]
(vlax-invoke-method (vlax-create-object "shell.application") 'open "c:\\muster.ini")But I did not test it with typos ...

Have a nice sunday.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23