2017-08-02 39 views
0

我在傳遞給命令行命令的字符串中添加換行符時出現問題。語法是這樣的:將LineFeed添加到命令行選項(Windows 7)

sometool --modifyfield "Description"="How to add a line feed?" 

我已經嘗試沒有成功:

sometool --modifyfield "Description"="How to add a \n line feed?" 
sometool --modifyfield "Description"=$"How to add a \n line feed?" 
... and othercombinations using % and^

...但我始終清楚地看到文字behin的「=」,在我的描述字段。

是否可以在此處添加換行符?

回答

0

PowerShell可以安裝在Windows 7上。是sometool可執行文件.exe嗎?

powershell -NoProfile -Command "& sometool --modifyfield "Description"="How to add a `n line feed?"