Run file from application directory
Can u help me in how i can run a file from the directory where the exe is located?
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
Ryan AlfordRank #1,411 · 1.2K reputationPosted Sep 17, 2008, 4:43 AM EDT
Harto23 reputationPosted Sep 19, 2008, 8:59 AM EDT
Error 1 The name 'Path' does not exist in the current context
Error 2 The name 'Assembly' does not exist in the current context
Posted Sep 19, 2008, 9:43 AM EDT
using System.IO;
using System.Reflection;
to your code file.