我有以下powershell
脚本将$dateMinusThirty
变量作为参数传递到scribe
数据迁移作业:
$dateMinusThirty = Get-Date (Get-Date).AddDays(-30).ToString('s') -Format d;
.\TWorkbench.exe "D:\filePath.dts" /VCreatedBefore="DATEVALUE($dateMinusThirty)" /RS
日期是我需要它的日期,Scribe打开,但立即崩溃
我这样做了吗?
正确的语法如下:
$dateMinusThirty = Get-Date (Get-Date).AddDays(-30).ToString('s') -Format d;
.\TWorkbench.exe "D:\filePath.dts" /VCreatedBefore="DATEVALUE(\""$dateMinusThirty\"")" /RS