Powershell脚本:使用New-Item在TFS服务器上创建文件

时间:2018-04-03 16:26:23

标签: powershell tfs

能够使用此命令在本地服务器上创建文件。

$msbuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
New-Item -Path $ScriptDir\NITI_20180402.223.txt -ItemType "file" -Value "This is a text string."

但是在TFS服务器上构建此脚本时,不会创建文件。

New-Item -Path $ScriptDir\NITI_20180402.223.txt -ItemType "file" -Value "This is a text string."

0 个答案:

没有答案