Answers for "create a file in cmd"

3

create file and write to it cmd

echo some-text  > filename.txt
Posted by: Guest on October-13-2020
17

make new file windows cmd

type nul > README.txt
Posted by: Guest on August-01-2020
7

create a file cmd

type NUL > EmptyFile.txt
# also
echo. 2>EmptyFile.txt
copy nul file.txt > nul # also in qid's answer below
REM. > empty.file
fsutil file createnew file.cmd 0 # to create a file on a mapped drive
Posted by: Guest on May-20-2020
1

creating file with cmd

type NUL > 1.txt
Posted by: Guest on July-07-2020
1

cmd make new file

$null > filename (including the $)
Posted by: Guest on January-19-2021
0

create a file in cmd

echo. > "myfilename.fileextension"
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language