home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / amigae / e_v3.2a / src / dos / shell.e < prev   
Text File  |  2001-03-31  |  411b  |  16 lines

  1. -> Silly Shell Example
  2.  
  3. PROC main()
  4.   DEF inputstring[80]:STRING, con
  5.   IF con:=Open('con:10/10/400/100/MySillyShell v0.1',NEWFILE)
  6.     Write(con,'Shell by $#%! in 1991. "BYE" to stop.\n',STRLEN)
  7.     WHILE StrCmp(inputstring,'BYE')=FALSE
  8.       Execute(inputstring,0,con)
  9.       Write(con,'MyPrompt> ',STRLEN)
  10.       ReadStr(con,inputstring)
  11.       UpperStr(inputstring)
  12.     ENDWHILE
  13.     Close(con)
  14.   ENDIF
  15. ENDPROC
  16.