A
A
Andrey2019-12-06 04:17:46
cmd/bat
Andrey, 2019-12-06 04:17:46

Which command can completely clear a file?

What command through the console can clear the txt file from all text?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergey, 2019-12-06
@andrey-marun

Andrew or else
copy /y NUL test.txt

D
dollar, 2019-12-06
@dollar

If the file is test.txt, then this:

spoiler
The resulting file will be 2 bytes in size.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question