Executing exe
How to give the relative path to run the .exe when clicked on link button usinh c#.net in windows application
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramasagar PulidindiRank #163 · 14.4K reputationPosted Dec 29, 2013, 3:53 AM EST
Dhirendra MisraRank #4,173 · 360 reputationPosted Dec 29, 2013, 5:49 PM EST
As Process.Start(path) needs full path, I think you can make use of Directory.GetCurrentDirectory() to determine the current path of the your executing assembly and combine your target filename to get it invoked.
.................
Hope it may be helpful to you.
rajashri sarade28 reputationPosted Dec 29, 2013, 10:38 PM EST