security - windows - 创建文件 type, echo, notepad

访问量: 402

refer to:
https://stackoverflow.com/questions/30011267/create-an-empty-file-on-the-commandline-in-windows-like-the-linux-touch-command

https://stackoverflow.com/questions/773610/add-a-new-line-to-a-text-file-in-ms-dos

创建文件

type nul > empty_file.txt

echo. > empty_file2.txt

写入文件

echo > file
echo line1 >> file
echo line2 >> file 

查看文件: type, notepad

可以看到内容过去了

也可以使用type 命令来查看

订阅/RSS Feed

Subscribe