|
Post by bzncrew on May 11, 2020 19:36:59 GMT 1
I have a DOS app that runs in a virtualbox window and shells a CURL command.
eg: CURL -s -v -X POST -H "apilinestuff" -H "application/json" -d @file.xml "https://sandbox.mygatyway.com/api" -o result.xml
I do this by placing the CURL command line in a batch file and running the batch file. So my DOS app essentially runs the "mycurl.bat" file.
Is this doable with VDOS?
I can open a command window with CMD but can't seem to pass it a batch file. eg CMD "mycurl.bat"
|
|
|
Post by Jos on May 11, 2020 20:06:39 GMT 1
You have to tell CMD it actually has to execute something, so it would be: CMD /c mycurl.bat Or: CMD /k mycurl.bat To keep the CMD window open for testing.
Jos
|
|
|
Post by bzncrew on May 11, 2020 21:19:13 GMT 1
THANK YOU! THANK YOU!
That worked. This was my last roadblock.
This will simplify my Win10 deployment so much. No more Virtualbox!!
|
|
|
Post by Jos on May 11, 2020 21:28:09 GMT 1
Also have a look at the HIDE and WAIT options. Though mind the limitation of CMD not returning the exit code of the program started. For that your would have to start CURL directly in your DOS program, w/o CMD in between.
Jos
|
|