| Make your own CMD, A easy way to get past the "Command line is restricted by Admins" Well, i know some of you have been at a school/library and tried to have some fun with the command line, but when u tried to start the CMD you got the message
"Command line is restricted by Administrator" or something.
i had the same problem at my school so i figured a way to get past the message by making my own CMD. The code is simple, but it can be really powerful.
i'm not going to get deep in batch scripting, but i will explain how the code works.
first, open notepad, paste the script and save as "something".bat
----------------------------------------
@ECHO OFF
BREAK OFF
Title My own CMD
color 0a
cls
:cmd
set /P CMD=Command:
%CMD%
ECHO.
goto cmd
----------------------------------------
The part between "@ECHO OFF" and "cls"
are just installations of colors and stuff (most of it just for fun).
:cmd
":cmd" is just for making a "point" you can loop back to later.
set /P CMD=Command:
"set /P CMD=Command:" is the input for storing your command in the variable "CMD".
%CMD%
"%CMD%" is just the variable you typed in earlier but now it works as a command
ECHO.
"ECHO." are just for making a space between your commands, just for making it cleaner.
goto cmd
"goto cmd" is a command to make the program jump pack to the ":cmd" location and start over from there.
well good luck
please drop a line, and let me hear what u think.
-wonder
__________________ This is my very original signature |