Posts

Showing posts with the label Windows Mobile 6 File IO

Windows Mobile 6 File IO

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; public class WindowsMobile6IO { /// /// Get the executing assembly's application path in Windows Mobile 6 /// /// internal static string GetApplicationPath() { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); } /// /// Get folder path located under your application in Windows Mobile 6 /// e.g. If youe application is at "\\Program Files\\TheRock" /// the "Projects" directory under your application can be accessed at "\\Program Files\\TheRock\\Projects" /// internal static string ProjectsFolderPath { get { return Path.Combine(GetApplicationPath(), "Projects"); } } /// /// Create a directory in Windows Mobile 6 application /// internal static void CreateProjectDirectory() {...