last accessed folder

last accessed folder

Anonymous
Not applicable
347 Views
8 Replies
Message 1 of 9

last accessed folder

Anonymous
Not applicable
Dear experts,

I want my user go directly to the last acess folder.
How could I find the last accessed folder

Thanks
0 Likes
348 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
The last accessed folder for what?
Open Drawing?
Attach Xref?
Load Linetype?
Insert block?

All these and many others are stored separately in the system registry for dialog box defaults.

Regards
Phil
0 Likes
Message 3 of 9

Anonymous
Not applicable
Do you mean some thing like this ?

Sub OpenTekDir()
OTDpath = ThisDrawing.Path
RetVal = Shell("explorer.exe /e, " + OTDpath, 1)
End Sub

This opens a explorer in dir of the currend drawing.
0 Likes
Message 4 of 9

Anonymous
Not applicable
Actually I want to ectract the Last folder Of the edited or opend drawing.
0 Likes
Message 5 of 9

Anonymous
Not applicable
(command "REMEMBERFOLDERS" "1")
0 Likes
Message 6 of 9

hmsilva
Mentor
Mentor
Last Opened, Saved Directory...

(defun c:test()
(vl-load-com)
(setq ActProfile (vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles")))
(vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" ActProfile "\\Dialogs\\OpenSaveAnavDialogs")"InitialDirectory")
)

EESignature

0 Likes
Message 7 of 9

Anonymous
Not applicable
(getvar "dwgprefix")
0 Likes
Message 8 of 9

Anonymous
Not applicable
thanks guys for your help.

Mr Silva,
Your function is working well and ideal for my worsk.
thank you very much sir.

mr. Silva do you from sri lanka ?
0 Likes
Message 9 of 9

hmsilva
Mentor
Mentor
You're welcome, kingkusa.

I'm from Portugal...

EESignature

0 Likes