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