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.
我需要创建一个应该参数化的批处理文件
我的查询
select * from glob2("parameterised value what the user is entering")
在您的代码中,您可以通过引用 %1 %2 等来访问命令行参数。
阅读HELP CALL并尝试这个
HELP CALL
@echo off echo QUERY SELECT * FROM GLOB2 WHERE NAME="%1"
您可以使用set /p查询用户的输入:
set /p
set /p value=Enter something:
然后您可以随后使用该变量;在这种情况下%value%。
%value%