Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP Path: utzoo!watmath!watnot!watcgl!jchapman From: jchapman@watcgl.UUCP (john chapman) Newsgroups: net.micro.pc Subject: Re: MS-DOS cd command Message-ID: <1986@watcgl.UUCP> Date: Fri, 7-Jun-85 09:54:13 EDT Article-I.D.: watcgl.1986 Posted: Fri Jun 7 09:54:13 1985 Date-Received: Sat, 8-Jun-85 01:57:13 EDT References: <2160@mhuxd.UUCP> Organization: U of Waterloo, Ontario Lines: 28 > Any one know how I might disable the built-in cd command? > > Actually, I have two purposes in mind. One is to allow me to > boot my AT&T PC6300 with a menu-driven suite of application > programs in such a way that if someone were to get out of the > suite, it would be difficult for him/her to go poking around > the hard disk and screw up the development stuff I keep in > other sub-directories. The other purpose is to replace the > standard cd command with a more Unix(tm)-like version. > > In the first case, I guess I want to completely kill the > built-in function chdir (and its alias, cd) and in the second, > just eliminate the alias. Any ideas? > > Chip > to write my own command.co A couple of suggestions : 1. I'm not near my system right now to check it out but it may be that MS-DOS checks for name.com, name.exe and name.bat files before it sees if a command is an internal one so that internal commands may be replaced by user versions (of course an intruder could always delete your version and get the system one back... unless it would also work with hidden files). 2. Look for the string CD and/or CHDIR in command.com using debug and then change the names to whatever you want..... Now you'll have a secure version of command.com for users