c#wpfアプリケーションを使用して、フォルダーを作成し、そのフォルダーにいくつかの画像をコピーしようとしています。
curName = txt_PoemName.Text;
// Specify a "currently active folder"
string activeDir = @"C:\Program Files\Default Company Name\Setup2\Poems";
//Create a new subfolder under the current active folder
string newPath = System.IO.Path.Combine(activeDir, curName);
// Create the subfolder
System.IO.Directory.CreateDirectory(newPath);
foreach(DictionaryEntry entry in curPoem){
string newFilePath = System.IO.Path.Combine(newPath, entry.Key.ToString() + Path.GetExtension(entry.Value.ToString()));
System.IO.File.Copy(entry.Value.ToString(), newFilePath, true);
}
フォルダと画像を正常に作成しました。また、アプリケーションを介してそれらにアクセスできます。しかし、ローカルディスク上の場所にそれらが表示されません。マシンを再起動すると、アプリケーションもそれらを見ることができません。どうすればこれを解決できますか?