0

I need to create a batch file which should be parameterised

my Query

select * from glob2("parameterised value what the user is entering")

2 Answers 2

1

You can use set /p to query the user for input:

set /p value=Enter something: 

You can then subsequently use the variable; in this case %value%.

Sign up to request clarification or add additional context in comments.

Comments

1

In your code you can access the command line parameters by referring to %1 %2 etc.

Read HELP CALL and try this

@echo off
echo QUERY SELECT * FROM GLOB2 WHERE NAME="%1"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.