create file and write to it cmd
echo some-text > filename.txt
create file and write to it cmd
echo some-text > filename.txt
make new file windows cmd
type nul > README.txt
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
creating file with cmd
type NUL > 1.txt
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us