Link to home
Start Free TrialLog in
Avatar of rsivam
rsivam

asked on

How to find the last open Directory

Hello

How to find which Dir open Last.

For eg.We can open dir in windos
manually like c:\temp\sub\test,...., ,, .C\Test

and we can   open no of dir.

When i ececuting delphi exe i want  to Known
which Dir open last(C:\Test)

Thanks in Advance

Regards
Sivam RN






ASKER CERTIFIED SOLUTION
Avatar of DjamD
DjamD

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hello rsivam, I'm not to sure what you mean by    which Dir open last. . . but there is an API function  GetCurrentDirectory( ) which may help


var
AryChar: Array[0..1024] of Char;
begin
GetCurrentDirectory(1023,AryChar);
Label1.Caption := AryChar;
end;
Avatar of rsivam
rsivam

ASKER

Hello Slick812

Thru one application or Manually  I can open  one   Directory.
And executing the other application  i want to trace
Path opened by the first one.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder
I think
The above is one of the  solution for that.
But we take care about retreving data.

Your idea is somewhat easier.
But one condition if both  exe should be in the same place
otherwise it wont  trace.

















Avatar of rsivam

ASKER

Hello Slick812

Thru one application or Manually  I can open  one   Directory.
And executing the other application  i want to trace
Path opened by the first one.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder
I think
The above is one of the  solution for that.
But we take care about retreving data.

Your idea is somewhat easier.
But one condition if both  exe should be in the same place
otherwise it wont  trace.

















Avatar of rsivam

ASKER

Hello Slick812

From that API we will get the Current Dir.
But we didnt get the Dir opened by the other Application.
Avatar of rsivam

ASKER

Hello Slick812

From that API we will get the Current Dir.
But we didnt get the Dir opened by the other Application.
rsivam:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
https://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: DjamD

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer