(Doh! I had a mistake in the code.... Fixed it now. Was supposed to be !Directory.Exists)
The following code executes at the beginning of a Pocket PC application run. It makes sure that the settings folder exists for that application.
static void Main(string args)
Things to ignore: Process race conditions, file system lock issues.