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.
フォルダー内のファイルが 30 分以上存在していたかどうかを確認しようとしています。現在のシステム時刻と PowerShell でファイルが作成された時刻の差を見つける必要があります。助けてください。
これは、ファイルがコピーされてからの分数を返します。
$($(Get-Date) - $(gci filename).CreationTime).Minutes