May 19, 2006 #1 AgentM MIS Joined Jun 6, 2001 Messages 387 Location US How do I get the path from which my application is executing? Thank you
May 22, 2006 #2 NeilTrain Programmer Joined May 27, 2003 Messages 275 Location US Application.ExecutablePath Upvote 0 Downvote
May 23, 2006 #3 Hokkie MIS Joined Nov 21, 2001 Messages 77 Location NL or try System.Windows.Forms.Application.StartupPath Upvote 0 Downvote
May 23, 2006 #4 NeilTrain Programmer Joined May 27, 2003 Messages 275 Location US StartupPath does not include the exe name, just the folder path it is in. Perhaps thats what he was looking for, I'm not sure. Upvote 0 Downvote
StartupPath does not include the exe name, just the folder path it is in. Perhaps thats what he was looking for, I'm not sure.
May 23, 2006 #5 obislavu Programmer Joined May 31, 2003 Messages 974 Location CA Try this one: Code: // Retrieve assembly path string assemblyPath = Assembly.GetExecutingAssembly().Location; obislavu Upvote 0 Downvote
Try this one: Code: // Retrieve assembly path string assemblyPath = Assembly.GetExecutingAssembly().Location; obislavu