Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: 特定のユーザーの Windows の「特別なフォルダー」のパスを取得するにはどうすればよいですか?
C# でプログラムを実行しているユーザーではない特定のユーザーのアプリケーション データ ディレクトリを取得することは可能ですか?
簡単で少しハッキーな方法の1つは、プログラムを実行しているユーザーの%appdata%ディレクトリを取得し、そのユーザー名を目的のユーザー名と交換することです。99%の確率で機能するはずですが、失敗する可能性があります。まれな機会。