home *** CD-ROM | disk | FTP | other *** search
- cr=StrCat(Num2Char(13),Num2Char(10))
- if param0==0 then goto message
- param1=StrUpper(param1)
- a='This program is stored on a 3╜" diskette.%cr%'
- b=" In order to run it, the proper diskette%cr%"
- c=" must be in the B:\ drive. Please locate%cr%"
- d=" the diskette and insert it.%cr%"
- e="(Selecting No below will search the catalog%cr%"
- f=" if you don't know which diskette to insert.)%cr%"
- g="%cr%"
- h=" Is the proper diskette in the drive?"
- a=Strcat(a,b,c,d,e,f,g,h)
- zzz=AskYesNo("%param1%",a)
- If zzz==@NO Then Goto disksort
- :above
- LogDisk("b:")
- DirChange("b:")
- b=FileExist("b:\%param1%")
- if b==@TRUE then run(param1,"")
- if b==@FALSE then goto below
- exit
- :below
- line1="Could not find %param1% on%CR%"
- line2="the diskette inserted...%cr%
- line3="%cr%"
- line4="Please verify the correct diskette%cr%"
- line5="is in Drive B:\, Then Select Okay"
- b=StrCat(line1,line2,line3,line4,line5)
- Pause("%param1%",b)
- Goto above
- :disksort
- Run("ppd.exe","disksort.txt")
- Display(5,param1,"Close PowerPad when finished")
- WinActivate("Power")
- Sendkey("!sf%param1%{enter}")
- WinWaitClose("Power")
- Pause(param1,"Insert Program diskette %cr%and Select Okay")
- Goto above
- :message
- a="bdisk.wbt is a command line precursor%cr%"
- b="to programs stored on 3╜ diskette.%cr%"
- c="It allows you to represent diskette programs%cr%"
- d="as icons in the Program Manager, without%cr%"
- e="getting system errors when you attempt%cr%"
- f="to run them sans a diskette in the drive.%cr%"
- g="%cr%"
- h="Its syntax is:%cr%"
- i=" winbatch.exe bdisk.wbt <executable file>%cr%"
- j="Example:%cr%"
- k=" winbatch.exe bdisk.wbt wingif.exe"
- a=StrCat(a,b,c,d,e,f,g,h,i,j,k)
- Pause("BDISK",a)
- exit