View Full Version : Right click in windows explorer => folder ?


boisbaudry
10-10-2008, 01:27 PM
Hello,

Under Windows explorer, when I right click on a file, I want that my Access application (which is in a contectual menu) once loaded, give me the path of the file. How can I do ?

Any idea ?

ajetrumpet
10-10-2008, 04:54 PM
what for? what purpose? to copy? opening this from the access file picker? more info!

georgedwilkinson
10-10-2008, 06:12 PM
Why don't you just set "display path in the title bar" in your windows explorer options? Otherwise, you'll need to do a registry hack (no, I don't know how to do it).

boisbaudry
10-10-2008, 09:40 PM
When I right click on a mdb file, in windows explorer, I can load an Access application which can extract the embeded jpeg of this file (an utility of Lebans called ExportOLEtoJpeg).

My only problem is : how to pick up the name of the folder of the mdf file on which I have right clicked.

Nobody launch Access applications from the context menu of Windows explorer ?


Sorry for my english, I hope you can understand me !

georgedwilkinson
10-11-2008, 08:22 AM
It is quite difficult to understand what you are doing. If you need to add an application to the context menu, put that application in the user's "Send To" folder.

boisbaudry
10-11-2008, 08:48 AM
Yes, I'll try to be more clear :

Under windows explorer, I have put, in a context menu, an Access application "Look.mdb".

When I run windows explorer, If I right click on a file, for exemple "test.mdb", it runs Look.mdb (not test.mdb).

My question is : when Look.mdb run, how can I retrieve the full path of test.mdb ? (curdir doesn't work)

Don't you use Access applications in the context menu of windows explorer ?

Thanks,

georgedwilkinson
10-11-2008, 09:10 AM
Well, I believe I understand your question now. At least enough to say I don't know how to resolve it.

I'm particularly fond of a registry hack that allows you to right click on a directory in Windows Explorer and open a DOS window in that directory. Maybe you could reverse engineer something like that to figure out how to pass the directory name?

boisbaudry
10-11-2008, 11:12 AM
Thank you for your response.

In fact, I search a solution using only MSAccess.

I would like to avoid having to use a back door, like Autoit or VbScript.

Some ideas ?