Page 1 of 1
How to add commands to cmd
Posted: 08 Oct 2011 21:29
by Rileyh
Hi,
I want to make my cmd easier to use and so I want to add some more commands.
Could you tell me how to make more commands available to me?
Regards,
Rileyh
Re: How to add commands to cmd
Posted: 09 Oct 2011 09:25
by alleypuppy
You can create batch files that do specific things and then place them in the System32 folder.
For instance, you can create a command that deletes your internet cookies by making a batch file that contains something like this:
Code: Select all
@ECHO OFF
IF EXIST "%APPDATA%\Microsoft\Windows\Cookies" (PUSHD "%APPDATA%\Microsoft\Windows"
(DEL "Cookies\*.*" /A /F /Q /S > NUL 2> NUL
ECHO Cookies deleted!
POPD
EXIT /B
))
ECHO No cookies to delete!
EXIT /B
Then, just save it in the System32 folder and name it whatever you want. No matter what directory you are in, you can type the name of the file and it will execute, just like a command.
Re: How to add commands to cmd
Posted: 11 Oct 2011 19:55
by Ed Dyreen
'
I want to make my cmd easier to use and so I want to add some more commands.
There are many, and here's one:
My/our contribution, a function definitions list
viewtopic.php?f=3&t=1893