Xref: utzoo comp.sys.ibm.pc.misc:5011 comp.sys.novell:203 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu From: cantie@acsu.buffalo.edu (bruce n cantie) Newsgroups: comp.sys.ibm.pc.misc,comp.sys.novell Subject: Re: shelling to Dos Message-ID: <52979@eerie.acsu.Buffalo.EDU> Date: 26 Dec 90 06:32:05 GMT References: <1990Dec24.012958.9228@magnus.ircc.ohio-state.edu> <1990Dec25.024222.13265@xrtll.uucp> Sender: news@acsu.Buffalo.EDU Followup-To: comp.sys.ibm.pc.misc Organization: SUNY Buffalo Lines: 33 Nntp-Posting-Host: lictor.acsu.buffalo.edu In article <1990Dec25.024222.13265@xrtll.uucp> silver@xrtll.UUCP (Hi Ho Silver) writes: >In article <1990Dec24.012958.9228@magnus.ircc.ohio-state.edu> salter@magnus.ircc.ohio-state.edu (John E Salter) writes: >$How does one prevent an application from shelling to DOS? > > Well, before invoking it, you could set the COMSPEC environment variable >to point to a program which simply returns, and reset it afterwards. There >may well be other ways ... Another 'easy' way is to simply do SET COMSPEC= before invoking the program. Then reset the COMSPEC back to the valid COMMAND.COM. In our case the DOS directory on the server is always mapped to Y:, so we do: SET COMSPEC= PROGRAM SET COMSPEC=Y:COMMAND.COM You might have to work things a little different if you ues boot disks or hard drives in the workstations (we have boot proms in the 3COM 501 and 503 cards condifured for packet drivers to use telnet/ftp). >-- > __ __ _ | ...!nexus.yorku.edu!xrtll!silver | always >(__ | | | | |_ |_) >----------------------------------< searching > __) | |_ \/ |__ | \ | if you don't like my posts, type | for >_____________________/ find / -print|xargs cat|compress | SNTF -- ---------------------------------------------------------------------------- Bruce Cantie Internet: cantie@cs.Buffalo.EDU | I speak only for me, LAN Systems BITNET: LSBRUCE@UBVM.BITNET | U.B. has nothing to 301A Computing Center BITNET: LSBRUCE@UBVMS.BITNET | do with it.