Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Windows 批处理脚本调用一个sql脚本,用户需要ENTER在提示期间按下该脚本。这会导致程序在执行期间暂停并等待用户输入。是否可以使用命令在脚本中预设ENTER密钥?sql
sql
ENTER
我想出了一个简单的方法 -sql在提示阶段在脚本中添加一个空行。然后,提示将简单地将Return密钥作为输入并继续进行后续阶段。
Return