Re: QBASIC Program via wscript.shell giving error
- From: "christophe" <irs.znospamforme@xxxxxxxxx>
- Date: Mon, 11 Sep 2006 15:04:50 +0200
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,repetitive
"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
Qbasic program is running. Shell should solve that problem.both
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
Minimisedof
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
Minimisederrors: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
QQwState = 7 &&7&& Run the Dos Command in an Inactive and
callsWindow
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
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
.
- References:
- Re: QBASIC Program via wscript.shell giving error
- From: christophe
- Re: QBASIC Program via wscript.shell giving error
- From: christophe
- Re: QBASIC Program via wscript.shell giving error
- From: S Bans
- Re: QBASIC Program via wscript.shell giving error
- Prev by Date: Re: VFP 9.0 IDE
- Next by Date: Re: frx2any converting to pdf slow
- Previous by thread: Re: QBASIC Program via wscript.shell giving error
- Next by thread: Re: QBASIC Program via wscript.shell giving error
- Index(es):
Relevant Pages
|