Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

I believe that type is built into the shell's command parser itself, so I'm thinking no.

You could always make type.bat (which does nothing), or even compile type.exe and put it in path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top