Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #file #cmd
ADD COMMENT
Topic
Name
9+3 =