473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to get the directory (folder) on which user has done right click

Hello,

I have developed one application, and added it to right click pop-up menu of the folder.

Whenever user right-clicks on folder and selects my application from pop-up menu, I want the path to that folder (on which user has done right click).

I am using Directory.GetCurrentDirectory(), but it gives me path to the parent directory of the user right clicked directory.

How can I get the path to the directory on which user has done right click?

Regards
Abhishek
Feb 23 '09 #1
5 1826
Hello,

I have developed one application, and added it to right click pop-up menu of the folder.

Whenever user right-clicks on folder and selects my application from pop-up menu, I want the path to that folder (on which user has done right click).

I am using Directory.GetCurrentDirectory(), but it gives me path to the parent directory of the user right clicked directory.

How can I get the path to the directory on which user has done right click?

Regards
Abhishek
Feb 23 '09 #2
tlhintoq
3,525 Expert 2GB
Could we see some of the code that you are using to do this? I'm going to bet there is some kind of EventArgument that is being passed that you could take advantage of.

(PS. No need to post the same message twice, one minute apart.)
Feb 23 '09 #3
Hello tlhintoq,

Thanks for reply.

Actually I added my application to right click on folder by modifying registry and then i am just using Directory.GetCurrentDirectory() inside constructor, which gives me parent directory of user right clicked directory. That's all I have done.

(PS. I did not post the message two times, may be it accidentally got posted two times)

Regards
Abhishek
Feb 23 '09 #4
tlhintoq
3,525 Expert 2GB
I ran across this article/project where the author adds context menu to Windows Explorer in order to pass a folder name as the arguments to his .ZIP file utility. Sounds very much like what you are doing, with a different end application as the recipient of the command. It was built on top of this much simpler project that does not pass an argument but is an easier read to start with.
Feb 23 '09 #5
Thank you very much...

I got what i needed.

Thanks again

Regards
Abhishek
Feb 24 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: scmiles | last post by:
I am trying to write an asp or aspx page that will create a virtual ftp directory to the users Active Directory home directory. That way a user can interact (drag/drop, copy/paste) via IE with...
26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
6
by: Glenn Owens | last post by:
As a "newbie" to Javascript I need some help with my latest problem... I have a number of image files that have been pre-selected by the user for downloading. I'd like to be able to have the user...
4
by: Gita | last post by:
I have a web applicattion containing a web photo gallery control. It worked great on my local web server. Once we put it on the actual web server, at first it didn't work. Then we put the bin...
10
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can...
0
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated ...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
by: dkode8 | last post by:
Hello, I am creating an application that uses impersonation to log a user into our domain and then show them the contents of their network share where they store their files. I have all the...
2
by: carla | last post by:
We have a bunch of articles that visitors to our website can read. They do a search, and we present a list of matching article links. The files are named sequentially: art1.htm, art2.htm, art3,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.