retrive folder/file path

  • hapetter
  • Born
  • Born
  • No Avatar
  • Joined: Oct 23, 2008
  • Posts: 3
  • Status: Offline

Post October 23rd, 2008, 3:42 am

Does windows save the path of a file/folder if I use windows explorer and right click on a file/folder?
I belive it is saved in windows registry somewhere? right? where?

Thanks!

Best regards
Hans
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 23rd, 2008, 3:42 am

  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6741
  • Loc: Martinsburg, WV
  • Status: Offline

Post October 23rd, 2008, 5:05 am

I don't think so. Your registry would end up being huge after a while if that was the case, especially since I right click a bunch of files and folders throughout the day. I'm not even sure why this feature would be useful.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • hapetter
  • Born
  • Born
  • No Avatar
  • Joined: Oct 23, 2008
  • Posts: 3
  • Status: Offline

Post October 23rd, 2008, 5:52 am

well I guess its the last file/folder path that are stored only...

It is very usefull for me to know because I want to open a VB program from the right click menu in windows explorer and along with that i like to retrive the path of the file/folder i clicked with my right mouse button:)

Any suggestion how to retrive this path?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post October 23rd, 2008, 6:12 am

maybe I'm not following you correctly, but Tools>Folder Options>View tab

Make sure Display the Full Path in the Address Bar is checked.
Copy & Paste the path from the Address Bar.

//if you're trying to retrieve the path with the VB program, I'm with grinch - don't believe it's possible
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • hapetter
  • Born
  • Born
  • No Avatar
  • Joined: Oct 23, 2008
  • Posts: 3
  • Status: Offline

Post October 23rd, 2008, 7:39 am

Its not what I want to do:)

In Vista you can push CTRL and rightclick on an file or folder. Then the right click menu give you an option to copy path to clipboard. This means path is stored somwhere by windows. I like to know where?

Suggestions?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post October 23rd, 2008, 7:47 am

Seems pretty obvious it's stored in the File Allocation Table, a.k.a. FAT, or NTFS in the case of XP and Vista. It isn't stored in the registry.

If I'm following your intent right, this might get you going in the right direction using .NET and VB and using the path class
http://msdn.microsoft.com/en-us/library/ms364070.aspx
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 159 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.