如何使用批处理命令创建空文件?

时间:2017-09-06 21:36:52

标签: windows batch-file

到目前为止,我的项目都是为假想的游戏创建文件,我必须创建文件(和文件中的文件),首先,我必须问他们想要什么版本,然后bacth将创建新的文件我的电脑。

我只是想知道创建新文件的命令是什么,不需要其他信息。

感谢。

1 个答案:

答案 0 :(得分:1)

是的,你可以。

type nul > your_file.txt

这里已经解决了

Windows equivalent of 'touch' (i.e. the node.js way to create an index.html)

相关问题