Re: QBASIC Program via wscript.shell giving error



S Bans,

That's right,
but the shell gave me problems with accessing the com port !
at least that was what I've got on a XP sp2
W98se was on that point "better"

My GWBasic.exe has an option to timeout.
So it won't stay on top of the app. it just shut down
after a certain time of inactivity.
so I didn't look any further to solve this.

What do you mean by other programs are loosing focus ?
Your foxpro app will sure loose focus because that app
should wait for the dos app to close.

Other then that all apps. should run fine I presume....

regards
christophe

ps. is it a barcode reader you try to get data from ?

"S Bans" <SBans@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:AF574FBD-6237-4F73-877B-89E9987030EB@xxxxxxxxxxxxxxxx
Christophe,

"Run" is working fine with me also, however the Black DOS window removes
focus from other programs and we can not do something else if some
repetitive
Qbasic program is running. Shell should solve that problem.

Regards

S Bans


"christophe" wrote:

euh,

It wasn't probably very clear in my previous answer but
Run works just fine.

Although I'm willing to retry the Shell.
It looks more fancy ....

regards
christophe

"S Bans" <SBans@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:5FE22941-6392-4A66-AE7C-43FF58CCE272@xxxxxxxxxxxxxxxx
Christophe,

Let's hope some senior member provides guidance which solves it for
both
of
us.

Regards

S Bans

"christophe" wrote:

S Bans,

I'm also running a Dos exe (GWBasic)
I also couldn't get it running with the Shell.run.
I just do : Run yourexe yourpar1 yourpar2

regards
christophe

"S Bans" <SBans@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:F9DB162D-D013-4E7C-8899-210EFBF0FFB8@xxxxxxxxxxxxxxxx
Hello Seniors,

I have been running some DOS programs via wscript.shell like:

QQwState = 7 &&7&& Run the Dos Command in an Inactive and
Minimised
Window
QQwait = 1 && 0 = NoWait, 1 = Wait
lo_Shell = createobject("wscript.shell")
lc_runRAS = 'rasdial "Con_name" "user" "pw"'
lo_Shell.Run(lc_runRAS,QQwState,QQwait)

However the attempt to run a QBASIC program as follows is giving
errors:

QQwState = 7 &&7&& Run the Dos Command in an Inactive and
Minimised
Window
QQwait = 1 && 0 = NoWait, 1 = Wait
lo_Shell = createobject("wscript.shell")
lc_runQBASIC = 'QBASIC/run C:\TEST\PROGRAM1.BAS'
lo_Shell.run(lc_runQBASIC,QQwState,QQwait)

I understnad I could be getting errors because of the multiple
calls
to
RUN,
however I do not know how to solve this problem.

I am looking forward to your guidance for solving this problem.

Regards

S Bans









.



Relevant Pages

  • Re: How to print in 3 copies from DOS (HP LaserJet 1300)
    ... the app once to Print to File and then shell out to DOS to run a small .bat file to print the file 3x. ... If she's got to switch back and forth between 1x and 3x, create two batch files, 1x.bat and 3x.bat. ...
    (comp.periphs.printers)
  • Re: Optical Drives
    ... Any chance of springing for new new optical drive? ... about the old one, or maybe his app that uses it, that the user is wed ... For example, with DOS, apps could get their hands on the 'real' device ... technical problem a W2k device driver wouldn't solve. ...
    (microsoft.public.win2000.hardware)
  • Re: Complete takeover by .NET?
    ... Plenty of DOS type apps around... ... as most of the network commands ... I have so far seen ONLY one app that Microsoft created ... And it's a security app. ...
    (alt.lang.asm)
  • Re: how to call print screen and how to read windows clip board
    ... between our DOS versions of our software's screen contents and their ... own WORD or other Windows softwares's screen contents. ... just want to export the ASCII text from your DOS app to ... If your clients normally run your app full-screen, ...
    (comp.lang.asm.x86)
  • Re: Great SWT Program
    ... can have its own cursor/selection independently of the underlying ... it and the underlying app will contend for the one and only text-mode ... A DOS box is a full blown VM ... You normally can iconify in this circumstance in Windows too, ...
    (comp.lang.java.programmer)