Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
1.80/5 (6 votes)
See more:
I am looking for some sort of sample on how to create an application that has a property in the Windows Property dialog that can be edited. Basically I wanted to create an application that will be like a shortcut, but it can use relative paths. what I mean by windows property dialog is the window that appears when you right click a file in windows explorer and select the right click menu item "Properties" at the bottom.

In this case what I am trying to do is create a new version of the ShortCut only this one will accept relative paths. I could do something similar with a batch file that contains the relative path to the target but then the command window is open during the time that the file is open using the batch file. Basically have some folders that contain files, and alias to the same file with a different name so that can open the same file (in this case a video file) that has a different name.

The person who gave one star show me how stupid I am by at least answering the question. If it is a stupid question then prove it.

An option may be to have the application add a context menu item the to the explorer context window that will bring up a form that allows the user to enter a path. So far no one seems to know how to add a property to the current file properties window.

What I have tried:

Done a lot of searching on the internet with little success.
Posted
Updated 4-May-17 6:19am
v5
Comments
Dave Kreskowiak 1-May-17 17:21pm    
You're going to have to specifically explain what you mean by "Windows Property dialog". Windows has more "property dialogs" than my son has stickers plastering the walls in his room.
Clifford Nelson 1-May-17 17:52pm    
Have done
ZurdoDev 1-May-17 21:35pm    
Do you want it to be an editable property or just display like other properties (Created Date, Size, etc.)

You should give a clear example to help us understand what you are needing to do.
Clifford Nelson 3-May-17 14:54pm    
Ok...Here it is. I want to create a very simple application that will be able to open a file using a relative path that can be set in windows explorer by changing the value of a property associated with the executable. The current shortcut only seems to support an absolute path which is useless for portable drives, and a folder copied with shortcuts will no longer work.
ZurdoDev 3-May-17 15:06pm    
Why don't you make the path a command line argument? I'm not even sure I've ever seen what you are asking.

1 solution

 
Share this answer
 
Comments
Clifford Nelson 3-May-17 17:05pm    
That is for adding context menu items, not for adding a editable property to an application
Richard MacCutchan 4-May-17 2:54am    
I have just reread your question and I still cannot quite figure out what you are trying to do. A relative path in a shortcut makes no sense, since the shortcut would need to be somewhere in the absolute path, so how would the user find it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900