String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Path.GetDirectoryName(filename);