M
M
MyQuestion2021-05-13 15:28:49
cmd/bat
MyQuestion, 2021-05-13 15:28:49

How to create multiple files in the console at the same time?

dir> file-1.js file-2.js

Found some information that through a space, but only one file is created.
Or is the standard console not able to do this?

Do windows terminals have the ability to create files , similar to the touch command on macOS ?
Maybe some git bash or Cmder can do this?

The files are not always the same type. These may be files with different names and extensions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Nazarenko, 2021-05-13
@nazares

For /L %I in (1,1,2) do type nul > file-%i.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question