且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Powershell Excel自动化按日期保存工作簿

更新时间:2022-05-23 22:42:13

这个功能就是 Get-Date 。调用没有参数将返回当前日期。这样的事情

The function for that is Get-Date. Called without arguments it will return the current date. Something like this

(Get-Date -Format yyyy-MM-dd) + ".xls"

将给您一个可用的文件名。

will give you a usable filename.