I have been trying to figure this issue out for quite some time now and I am just stuck. I am simply trying to easily parse user input on the command line.
here is what I have so far:
set /p "cmd=hk -> "
for %%a in (%cmd%) do (
echo %%a
)
With the above code, if I put in the following command:
hk > welcome john
It will return the following:
welcome
John
Now, what I am trying to do is have the output look something like this:
Hello John, how are you?
I tried using %%b, which would be the name of the person, however it did not work. I am very new to batch scripting, so I am just having some trouble understanding some things like this, for example. If anyone could help me figure this out, it would be greatly appreciated.