Hi Jochen,Things are going pretty good. Were just having problems with our Internet connections that we have not been able to pin down yet. VERY slow past couple of days.
Thanks for the help guy. Getting an error though with the script.
Script error : expected expression !.
I assume that maybe there is a missing . " () or something like that, but not sure where as it looks okay.
Here is what I did to get the file. Your code works if the file is not there, so I assume something else is required for the parsing to be happy.
code:
$ChkNavService = '%comspec% /c pv.exe -q >C:\RC.TXT'
shell $ChkNavService
$logfile = "C:\RC.TXT"
$chk = ""
$ = open(1,$logfile,2)
if @error = 0
$x = readline(1)
if $x
do
select
case instr($x,"rtvscan.exe")
$chk = "NT"
case instr($x,"rtvscn95.exe")
$chk = "95"
$x = readline(1)
until @error
endif
endifselect
case $chk = "NT"
"Windows NT" ?
case $chk = "95"
"Windows 95" ?
case 1
"Wassup here ?"
endselect
You don't need PV.EXE to test, you can just add some line to a file called RC.TXT in the root of C: to simulate the test error.
Thanks again Jochen, I appreciate the quick response and help.