PC Review


Reply
Thread Tools Rate Thread

Directory.GetCurrentDirectory() is not Supported

 
 
Torrent
Guest
Posts: n/a
 
      8th Dec 2003
MessageBox.Show(Directory.GetCurrentDirectory());

This code is throwing an "System:NotSupportedExeption:NotSupportedException"
Message.

I am using the Pocket PC 2002 Emulator with Visual Studio .NET 2003




 
Reply With Quote
 
 
 
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      8th Dec 2003
GetCurrentDirectory is not supported in the .NET CF. Maybe this can help you
if you want to know the path from which the application is executing:
http://smartdevices.microsoftdev.com...icles/516.aspx

--
Regards,

Maarten Struys, eMVP
PTS Software bv

"Torrent" <bl4k3Seven_88101athotmail.com> wrote in message
news:(E-Mail Removed)...
> MessageBox.Show(Directory.GetCurrentDirectory());
>
> This code is throwing an

"System:NotSupportedExeption:NotSupportedException"
> Message.
>
> I am using the Pocket PC 2002 Emulator with Visual Studio .NET 2003
>
>
>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      8th Dec 2003
Windows CE does not have a concept of current directory. The method exists
for API compatibility. File path needs to be fully specified

"Torrent" <bl4k3Seven_88101athotmail.com> wrote in message
news:(E-Mail Removed)...
> MessageBox.Show(Directory.GetCurrentDirectory());
>
> This code is throwing an

"System:NotSupportedExeption:NotSupportedException"
> Message.
>
> I am using the Pocket PC 2002 Emulator with Visual Studio .NET 2003
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory.GetCurrentDirectory() qglyirnyfgfo@mailinator.com Microsoft Dot NET Framework 2 26th Aug 2008 02:58 PM
Current Directory (System.IO.Directory.GetCurrentDirectory throws NotSupportedexeption) Gustavo Curve Microsoft Dot NET Compact Framework 2 17th Feb 2006 02:54 PM
Directory.GetCurrentDirectory() throws Not Supported exception David W Microsoft Dot NET Compact Framework 1 5th Jan 2004 02:36 PM
Can not use Directory::GetCurrentDirectory() in C++? Microsoft VC .NET 1 14th Nov 2003 03:44 AM
Re: Directory.GetCurrentDirectory() Alex Feinman [MVP] Microsoft Dot NET Compact Framework 2 8th Jul 2003 03:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:13 AM.