2010年5月2日 星期日

[.NETCF]GetCurrentDirectory with C# in WinCE

In windows applcation we can use

String path = Directory.GetCurrentDirectory();



to get current directory.

but in WinCE .NET CF2.0 is not support GetCurrentDirectory

so we can do it.

String path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);

沒有留言:

張貼留言

Hello