You are not logged in.
I want to add a new command in cmd.
Any good idea?
Offline
Any executable (either a program or a script) that's in one of the folders listed in echo %PATH% can be run from anywhere on the computer. Make a script that does something you want and add that script to one of those folders.
Offline
To quickly add your own CMD command, type:
echo @[equivalent command] >c:\windows\[yourcommandname].bat
Example:
echo @dir >c:\windows\listdirectory.bat
Last edited by Minecraft49 (20 Nov 2020 17:13)
Offline
Sorry, not dir but @dir.
Offline
You can also just use CALL to execute commands in a file instead of in a subroutine. You can easily pass any needed parameters to the file.
Offline
Thanks for the comment. I will try the above suggest.
Offline