Menu

Shell command

Anonymous
2016-12-13
2017-12-25
  • Anonymous

    Anonymous - 2016-12-13

    I have problems using the Shell command, how to modify and implement the Settings file with the Shell = native , in order to have de Shell command runing well in my pc-basic.

    Thanks for your help.

     
  • Rob Hagemans

    Rob Hagemans - 2016-12-13

    Youll need to add the line

    shell=native
    

    to PCBASIC.INI under the line that says

    [pcbasic]
    

    Make sure there are no other characters on the line (e.g. no leading spaces and no spaces around the = sign).

     

    Last edit: Rob Hagemans 2016-12-13
  • Anonymous

    Anonymous - 2017-12-24

    I installed PC-DOS on my laptop running Windows10.

    The first thing I looked for was if the SHELL command worked in this BASIC emulation. To my regret the SHELL command doesn't do anything (see attached screendump). Also not after having set "shell=native" in the PCBASIC.INI file.

    Do you have a suggestion?

    Kind regards, a

    Cees van der Waal

     
  • Cees sr van der Waal

    I didn't realise that I had to delete "# ", i.e. I had to amend "# shell=" into "shell=native" instead of into "# shell=native".

    By using "shell=native" PC-Basic indeed switches to CMD.EXE. However not any (C>) prompt appears. Also e.g. SHELL "dir/p" doesn't display any result.

     
  • Rob Hagemans

    Rob Hagemans - 2017-12-25

    Hi Cees, this seems to be a bug that has been introduced by a fix for some other issue with SHELL. I've opened an issue tracker here: https://github.com/robhagemans/pcbasic/issues/50

    However, please note the SHELL command doesn't quite behave as expected, even if this bug were fixed. That's due to limitations in modern Windows and can't really be fixed. It's best not to depend on this statement at all. See here for some background: https://sourceforge.net/p/pcbasic/discussion/bugs/thread/b1d43fc6

     
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.