[boot scriptor] Re: Detecting difference between cdshw.com and real boot

>To be sure that it's a problem with $versionDOS and not another aspect 
>of the script interpreter, you might want to try the command "echo 
>$versionDOS".  If I remember correctly, the echo command requires the 
>skeleton.csm module from the source code package to be present in your 
>modules directory.

I put this at the start of cdshell.ini:
  clear
  print "version DOS = $versionDOS\n"
  getkey
  quit

Under cdshw.com it printed 1 as expected.

Running an ISO under VMware it also printed a 1.

I'll work around it for now by manually editing a variable to
distinguish the two environments.

The reason that I care is that I'm trying to build a semi-intelligent
front-end that hides (or at least greys out) unavailable menu options.
It knows that an option is available by looking for the presence of a
key file in each case. For example, SLAX is only available if the file
/SLAX/livecd.sgn
exists. When I'm debugging using cdshw.com though, the actual file the
script needs to look for is /AIO-DVD/SLAX/livecd.sgn, so I wanted to use
versionDOS to set the appropriate path to prepend (and also to disable
the bcdw graphics that stop cdshw in its tracks).

Thanks

Antonio



-----Original Message-----
From: bscript-bounce@xxxxxxxxxxxxx [mailto:bscript-bounce@xxxxxxxxxxxxx]
On Behalf Of Mike Ter Louw
Sent: 03 June 2006 18:07
To: bscript@xxxxxxxxxxxxx
Cc: arcarlini@xxxxxxx
Subject: [boot scriptor] Re: Detecting difference between cdshw.com and
real boot

You're looking in the right place.  It should be returning 0 when you 
boot from the CD.  It may be a bug...I'll have to take a look.

To be sure that it's a problem with $versionDOS and not another aspect 
of the script interpreter, you might want to try the command "echo 
$versionDOS".  If I remember correctly, the echo command requires the 
skeleton.csm module from the source code package to be present in your 
modules directory.

Mike

Antonio Carlini wrote:
> Hi,
> 
> I'm putting together a front-end with CDshell and I want to test as
much
> as possible using the debugger rather than always having to build an
ISO
> and test it out using a virtual machine.
> 
> The manual suggests that $versionDOS is the variable I should look at,
> but it seems to me that I always see that as set (even when having
> booted from a
> CD using a VM).
> 
> I'm using 2.1.6 (the latest version, AFAIK)
> 
> Thanks for any insights,
> 
> Antonio
> 
> arcarlini@xxxxxxx
> 
> 
> ============================================================
> Boot Scriptor mailing list -- http://www.bootscriptor.org
> Change your subscription options at:
http://www.freelists.org/list/bscript
> 
============================================================
Boot Scriptor mailing list -- http://www.bootscriptor.org
Change your subscription options at:
http://www.freelists.org/list/bscript


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date:
02/06/2006


============================================================
Boot Scriptor mailing list -- http://www.bootscriptor.org
Change your subscription options at: http://www.freelists.org/list/bscript

Other related posts: