The following two simple programs work together under LInux - but not Windows 10

sayhello.nim:
    
    
    echo "Hello World"
    echo "Bye Bye"
    
    
    Run

and runhello.nim 
    
    
    import osproc
    
    var exeName = "sayhello"
    
    var tstprc = startProcess(exeName,"",[],nil,{poInteractive})
    var tstouthdl = tstprc.outputHandle()
    
    echo "tstouthdl=",tstouthdl.repr()
    
    var tstout:File
    
    if not tstout.open(tstouthdl):
        quit("Cannot Open tstout")
    
    var outline = tstout.readLine()
    echo "outline=",outline
    
    
    Run

Both machines are using nim 0.19 and a vanilla **nim c -r sourcename** 
compiling command.

What options/arguments/command-variations do I use to get the Windows 10 
version to work?

Thanks 

Reply via email to