Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
My program is launched by clicking a file with a particular extension but I can't find the name of the file to open it. Apparently the CommandLineArgs are not available to click once applications. Any ideas please (I am using VB 2010 express)
Posted

Use
VB
IO.Path.GetFileName(Application.ExecutablePath)

See Application.ExecutablePath Property[^] and Path.GetFileName Method[^] for explanation.
 
Share this answer
 
v3
Get Registered File Types and Their Associated Icons in C#[^] should help you get information about the program you want to launch.
 
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