0

I installed Linphone application http://www.linphone.org/technical-corner/linphone/documentation

I am running this application via cmd executing this command

"C:\Program Files (x86)\Linphone\bin\linphonec.exe"

then I make the call through this command

call [email protected]

I want to join the tow commands in one line so the cmd start the linphone then execute the call command inside the linphone

Output with & operator

C:\Users\Desktop\1>CD "C:\Program Files (x86)\Linphone\bin\"

C:\Program Files (x86)\Linphone\bin>linphonec.exe   & call [email protected]
WARNING: no real random source present!
Ready
Warning: video is disabled in linphonec, use -V or -C or -D to enable.
linphonec>

how i can do that in cmd ?

1 Answer 1

1
CD C:\Program Files (x86)\Linphone\bin\
echo call [email protected]|linphonec.exe

may work.

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

2 Comments

I used your code alone it was perfect but when i entered it in a loop in my bat file like this FOR /F "tokens=*" %%K IN ('echo call %%H%%Z@%%G|"C:\Program Files (x86)\Linphone\bin\linphonec.exe"') I got this error ` | was unexpected at this time ` what is this ?
Just the way batch syntax works - the cure is to insert a caret ^ before the pipe | so that batch knows that the pipe is part of the command to be executed. call %%H%%Z@%%G^|"C:\Progra... should work for you.

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.