Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to find the last open Directory

Posted on 2003-03-05
9
Medium Priority
?
277 Views
Last Modified: 2010-04-04
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






0
Comment
Question by:rsivam
8 Comments
 
LVL 1

Accepted Solution

by:
DjamD earned 400 total points
ID: 8070342
I think that what you're looking for is stored in the regisry under the following key :

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder

Be careful they're stored under binary format, try to open this key and read it.

Hope this helps,
cordially

DjamD
0
 
LVL 35

Expert Comment

by:Slick812
ID: 8077285
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;
0
 

Author Comment

by:rsivam
ID: 8078192
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.

















0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:rsivam
ID: 8078193
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.

















0
 

Author Comment

by:rsivam
ID: 8078328
Hello Slick812

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

Author Comment

by:rsivam
ID: 8078329
Hello Slick812

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

Expert Comment

by:CleanupPing
ID: 9316940
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.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 10033469
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://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
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question