By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,998 Members | 2,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,998 IT Pros & Developers. It's quick & easy.

Current Application Directory

P: n/a
Why, when I start my app by dragging a file onto it, does
System.IO.Directory.GetCurrentDirectory() return "C:\Program Files\Common
Files\System\Mapi\1033"??

And how do I get the Current Directory (the one my app is sitting in) if I
start my app by dragging a file onto it?

I have scoured the msdn and googled for an too long. Please help.
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
It turns out I should have been using Application.ExecutablePath to get the
executable directory.

I still wouldn't mind knowing why the current directory is set to C:\Program
Files\Common Files\System\Mapi\1033 though.

"Casey Motherway" <ca*************@autodesk.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl...
Why, when I start my app by dragging a file onto it, does
System.IO.Directory.GetCurrentDirectory() return "C:\Program Files\Common
Files\System\Mapi\1033"??

And how do I get the Current Directory (the one my app is sitting in) if I
start my app by dragging a file onto it?

I have scoured the msdn and googled for an too long. Please help.

Nov 22 '05 #2

P: n/a
It turns out I should have been using Application.ExecutablePath to get the
executable directory.

I still wouldn't mind knowing why the current directory is set to C:\Program
Files\Common Files\System\Mapi\1033 though.

"Casey Motherway" <ca*************@autodesk.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl...
Why, when I start my app by dragging a file onto it, does
System.IO.Directory.GetCurrentDirectory() return "C:\Program Files\Common
Files\System\Mapi\1033"??

And how do I get the Current Directory (the one my app is sitting in) if I
start my app by dragging a file onto it?

I have scoured the msdn and googled for an too long. Please help.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.