Menu

Autorun with command line parameters

Luigi
2017-03-28
2017-03-28
  • Luigi

    Luigi - 2017-03-28

    Hi,
    i like to run my .exe with commadn line parameters.

    If i run with:
    <input id="autorun" type="hidden" value="file.zip !c:!gwbasic.exe"/>
    Gwbasic works ok.... but if i run with:
    <input id="autorun" type="hidden" value="file.zip !c:!GWBASIC CALCO/F:15/S:512"/> (start calco.bas)
    my browser stuck. I tried with:
    <input id="autorun" type="hidden" value="file.zip !c:!run.bat"/> but same result.

    How can i auto-start an exe with command line parameters ?
    Thanks for support
    Luigi

     
  • Kevin O'Dwyer

    Kevin O'Dwyer - 2017-03-31

    Hi,
    Command line params are a bit experimental, but i was able to get it to work during my limited testing. The format you are using looks fine. Are you able to set the command line args from the configuration gui? ie Jsdosbox configuration dialog -> Advanced settings -> cmd line args. If it works from the gui then it should work from the params also.

    Bat files are not supported. This is due to the threading model. Back in the day there were DOS programs that compiled bat files to .com files. I tried, but was unable to find one that worked for me. I would be interested it someone got that to work.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.