Click here to Skip to main content
15,912,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have defined new extension(.abc) in windows registry by using following instructions:

C#
[HKEY_CURRENT_USER\Software\Classes\abcApp_V1\shell\open\command]
@="D:\myDirecoty\abcApp.exe \"%1\""
[HKEY_CURRENT_USER\Software\Classes\.abc]
@="abcApp_V1"


This works properly and now each file with .abc extension opens the abcApp.exe program.

I have changed the Directory name to my Directory (add space between my & Directory):

C#
@="D:\my Direcoty\abcApp.exe \"%1\""


It doesn't work! and the files with .abc extensions dont open abcApp.exe

What's the problem? Should I replace space with an special character?
Posted

1 solution

I have changed it like this and it works well:

"D:\my Direcoty\abcApp.exe" "%1"

Thanks
 
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