Welcome, Guest. Please login or register.

Author Topic: I need help on a a script!  (Read 1639 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GulliverTopic starter

I need help on a a script!
« on: September 03, 2009, 03:49:45 AM »
Hi, I am trying to get the following script to do the following:
Check if omniscsi.device exists
else quit this script and run PlayCD
if not exists omniscsi.device then continue with the following part:

IF NOT EXISTS ENV:PlayCDpatch
    SETENV PlayCDpatch=""
    STACK 8192
    RUN >NIL: Playcdkludge 3    ;Unit number of your CD-ROM Drive here!  
    STATUS >ENV:PlayCDpatch COMMAND Playcdkludge
    PlayCD
    BREAK $PlayCDpatch
    DELETE >NIL: ENV:PlayCDpatch
ENDIF

Any help appreciated. I am sorry, I am not good at all with programming, even lame scripts!
 

Offline GulliverTopic starter

Re: I need help on a a script!
« Reply #1 on: September 03, 2009, 04:19:58 AM »
just like i would do it, but without bailey, unluckily ;)
Anyway, is there someone who can help me?
« Last Edit: September 03, 2009, 04:57:24 AM by Gulliver »
 

Offline GulliverTopic starter

Re: I need help on a a script!
« Reply #2 on: September 06, 2009, 05:15:44 AM »
Thanks @pVC just what i was looking for!