-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Powershell脚本 #89
Comments
(Get-Content code/config.properties) -replace '^from_date=.', [string]::Format('from_date={0}/01 00:00:00 GMT+08:00', (Get-Date).ToString("yyyy/MM")) -replace '^to_date=.', [string]::Format('to_date={0}/30 23:59:59 GMT+08:00', (Get-Date).ToString("yyyy/MM")) | Set-Content code/config.properties |
删除空白文件夹
|
查找新修改过的文件
|
查找新修改过的文件 |
小鲁班(p_xiaoluban) 2023-10-26 20:48
以下为AI生成内容,仅供参考,不允许未经评估直接将生成内容植入工作输出件中。
在PowerShell中,可以使用字符串插值或字符串连接符将命令和文本字符串拼合到一起。
使用字符串插值,可以将变量或表达式嵌入到字符串中。在字符串中使用$符号,后面跟上变量名或表达式,即可将其插入到字符串中。
例如,将命令和文本字符串拼合到一起,可以使用以下代码:
在上面的代码中,$filename变量被嵌入到字符串中,以显示正在处理的文件名。
使用字符串连接符,可以将多个字符串连接在一起。在PowerShell中,字符串连接符是+号。
例如,将命令和文本字符串拼合到一起,可以使用以下代码:
在上面的代码中,使用字符串连接符将文本字符串和变量连接在一起,以显示正在处理的文件名。
The text was updated successfully, but these errors were encountered: