Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

explore.lsp not working please help

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
cadamson2112
527 Views, 7 Replies

explore.lsp not working please help

To all,

I have been using a great program for years called Explore.LSP..

This program opens up the directory that you are currently working in with your drawing. Lately, when I use the command, it only opens up my "my documents folder"

 

I have found similar programs online with slightly different code, but they all seem to only open up the "my documents folder".

 

This program has been working for for at least a year now with my Windows 7 computer running AutoCAD 2006.

This program has suddenly stopped working on my office workstation, as well as my computer at home.

 

I never realized how much I rely on this program  until now. Can somebody please shed some light on the subject?

Thank you.

Chris

7 REPLIES 7
Message 2 of 8
hmsilva
in reply to: cadamson2112

Welcome to the Autodesk Community, Chris.

Post the code and I'll see what I can do.

Henrique

EESignature

Message 3 of 8
cadamson2112
in reply to: hmsilva

here it is

(defun c:explore ()
(startapp "explorer" (strcat "/n,/e," (getvar "dwgprefix")))
(princ)
)
Message 4 of 8
hmsilva
in reply to: cadamson2112

Should work...

 

At the command line type

 

Command: explorer

 

What happens?

 

Type

Command: (getvar "dwgprefix")

 

Returns what?

 

Henrique

EESignature

Message 5 of 8
cadamson2112
in reply to: hmsilva

when I type the command Explorer and press enter Once, nothing happens, but the command prompt remains blank. (Usually the word command: appears). At that point, if I press enter a second time. a DOS window flashes by quickly and then the Windows Explorer opens up to the "libraries folder"

when I type in the command (getvar "dwgprefix") the path to my current folder is displayed in the command line.
Message 6 of 8
hmsilva
in reply to: cadamson2112

Copy/paste to the command line

(startapp (strcat "explorer /e, \""(getvar "dwgprefix") "\""))

 

It worked?

Henrique

EESignature

Message 7 of 8
cadamson2112
in reply to: hmsilva

it sure did!
now i know why they call you expert elite!

What was the problem? why did it suddenly stop working?
Message 8 of 8
hmsilva
in reply to: cadamson2112

Probably exist empty spaces in your path.

 

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost