Can anyone recommend a way in Windows XP or later to make it possible for users to access cmd.exe while locking out the ability to use type
?
views:
113answers:
3
A:
I believe that type is built into the shell's command parser itself, so I'm thinking no.
Promit
2009-04-28 23:21:53
A:
You could always make type.bat (which does nothing), or even compile type.exe and put it in path.
ldigas
2009-04-28 23:28:21
Making a .bat or .exe does not override the built-in command.
Greg Hewgill
2009-04-29 01:19:16
Hmm, yes. It would seem so. I'm mixing up things, this used to work fine in the dos days.
ldigas
2009-04-29 01:56:09
A:
Even if you could prevent the use of type
, the following command would do the same thing:
copy file.txt con
There are probably other ways to display the contents of a file without using the type
built-in command. Notepad (or any other text editor) jumps to mind.
Greg Hewgill
2009-04-28 23:29:55
yeah, you could use a web browser even... in fact it's impossible to stop the reading of all files as it's a core operating system function. One however can use ntfs ACLs to restrict just which files can be read(yes it's possible on win XP).
ewanm89
2009-04-29 02:07:25