【发布时间】:2021-11-27 13:25:13
【问题描述】:
我写了一个需要输入框的批处理脚本,首先是代码行:
powershell -Command "& {Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::InputBox('Enter your command: [*here i want a line break*] Example commands: [*and here i want a line break*] example command', 'Input box example')}" > %TEMP%\out.tmp
如何在此处插入换行符?请帮助我,现在搜索几个小时。
亲切的问候, jcjms
【问题讨论】:
-
jcjms,我已经删除了你的一些标签。这个问题仅与您的 [powershell] 代码的一小部分有关,并且与使用特定布局设计 [inputbox] 相关。它与 [batch-file]、[command-prompt] 或 [messagebox] 无关。在为您的问题分配标签时,请多加考虑。
标签: powershell inputbox