Re: QBASIC Program via wscript.shell giving error

Tech-Archive recommends: Fix windows errors by optimizing your registry



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





.