'=========================================================================== ' Subject: SLOW DOS, HORROR DIR COMMAND Date: 09-02-97 (15:36) ' Author: Davey W. Taylor Code: QB, QBasic, PDS ' Origin: audio.squad@mailbox.swipnet.se Packet: DOS.ABC '=========================================================================== '旼컴컴컴컴컴컴컴컴컴컴컴--컴�--� -� � '� ** SLOW DOS, HORROR DIR COMMAND ** '� Created by Davey W Taylor '� '� This is a very slow version of the standard DOS Shell. '� When using the command DIR it displays an error message '� and starts an infinate loop: the computer must be '� rebooted... I have also included the SAY command '� to show the usage of the par$ variable. '읕컴컴--컴�- � � PRINT 'PRINT "Slow DOS with horror DIR command!" 'PRINT "Type EXIT to quit" PRINT DO SHELL "CD>~diskop.tmp" 'Write CD(Current Directory :) to file OPEN "~diskop.tmp" FOR INPUT AS #1 LINE INPUT #1, n$ 'Read current dir CLOSE #1 PRINT n$ + ">"; 'Print prompt LINE INPUT "", n$ 'Get command n$ = n$ + " " cmd$ = LEFT$(n$, INSTR(n$, " ") - 1) 'Get the command par$ = MID$(n$, INSTR(n$, " ") + 1) 'Get the command parameters SELECT CASE UCASE$(cmd$) 'Check command CASE "EXIT" 'Quit on EXIT END CASE "SAY" 'Say something PRINT par$ CASE "DIR" 'Scare user on DIR PRINT "Hard Drive Failure... Please Reboot!!!": DO: LOOP CASE ELSE 'Execute command on all others SHELL n$ END SELECT LOOP