
NEED HELP DISABLING QB COMMANDS:IMMEDIATE REP. NEE
-> I am the systems analyst for our school system..In our Qbasic class we have
-> been having security troubles because of the commands "kill", "name", and
-> "shell"
-> is there anyway to disable these commands????
Yup, Since you are obviously running off of a menu system, make .Bat file
CD\QBasic <--Change to the right Directory
SET OLDSPEC=%COMSPEC% <--Set a Enviroment Variable to the COMSPEC variable
SET COMSPEC= <--Erases the Comspec variable
QBasic <--Starts Qbasic
SET COMSPEC=%OLDSPEC% <--Resets COMSPEC to it's old setting
SET OLDSPEC= <--Gets rid of the temp var
The COMSPEC enviroment varable is the varible that tells DOS where to find the
command interperator (COMMAND.COM), By setting it to nothing, no programs will
beable to load COMMAND.COM, thus any attempt to do a "Drop to Dos" would be
useless (This method can also be used for programs such as Micro$oft Works,
Word Perfect, or any other program that has a Drop To Dos option in it.)
As For your kill/name problem, there are two solutions. If you are
running under a network (Such as novell), Try setting the access control flags
to just Read/File scan. If you are running under DOS, use the ATTRIB command to
set the read only attribute I.e "Attrib Filename.ext +R".
Hope this helps..
Steven Smith