Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

I added a key to the registry such that when I right click on a jpeg file I see a new "Transform" option that actually runs my application.
My application gets the full path of the selected file as an agrument (in "args" parameter of "Main()").
The problem is that Windows converts the full path of the file to something that contains "~" characters. For example: "A B C.JPG" becomes "ABC~1.JPG".

Is there any way to restore the original full path of the file (that contains spaces) in my application ?
If not, could you suggest a workaround ?

Thanks !
Posted

1 solution

Answering myself:
System.IO.Path.GetFullPath
 
Share this answer
 

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