D
Dave Hall
How can I determine if a particular directory on my CE.NET 4.2 device will
persist through a reboot? For example, the default deployment target for
VS2003 is /Program Files/MyProject. After deploying my project to this
folder and rebooting the device, the MyProject folder no longer exists.
There are several folders that I can copy my application into which will
persist through a reboot, but the names of those folders is different for CE
devices from different vendors. I'm trying to find out if there is an API
call that will identify if the directory that I'm executing from (or any
directory specified) will still be around after I reboot. If my app is
running in a directory that will not survive a reboot, then I want to notify
the user. I'm looking for something like this:
if(!DirectoryWillSurviveReboot(System.Reflection.Assembly.GetExecutingAssemb
ly().GetName().CodeBase)
{
NotifyUser("Asssembly will be deleted at next reboot");
}
Any ideas how to determine this info?
Thanks,
Dave
persist through a reboot? For example, the default deployment target for
VS2003 is /Program Files/MyProject. After deploying my project to this
folder and rebooting the device, the MyProject folder no longer exists.
There are several folders that I can copy my application into which will
persist through a reboot, but the names of those folders is different for CE
devices from different vendors. I'm trying to find out if there is an API
call that will identify if the directory that I'm executing from (or any
directory specified) will still be around after I reboot. If my app is
running in a directory that will not survive a reboot, then I want to notify
the user. I'm looking for something like this:
if(!DirectoryWillSurviveReboot(System.Reflection.Assembly.GetExecutingAssemb
ly().GetName().CodeBase)
{
NotifyUser("Asssembly will be deleted at next reboot");
}
Any ideas how to determine this info?
Thanks,
Dave