G
G
Grigory Griksovshchik2020-04-17 15:25:08
cmd/bat
Grigory Griksovshchik, 2020-04-17 15:25:08

How to make your own command in cmd?

Type abc and write aabbcc to the console. Explain to an unknowing person, pls

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2020-04-17
@gtbtop

There are almost no commands in CMD - a lot of things there are executable files.
So what you need is an executable called abc, which will output aabbcc to the standard output, and which will be registered in PATH.
Maybe, of course, aliases were brought into the Windows cmd - then it's easier ...

R
res2001, 2020-04-17
@res2001

make the file c:\windws\abc.bat the following content:

@echo off
echo aabbcc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question