Search code examples
windowscommand-line-interface

How can I create an empty .html and .js file in windows command line?


I want to know if it is possible to create an empty .html and .js file inside on the Windows command line interface? If so, how do I achieve this? Thanks.


Solution

  • Depends, if you're just looking to create two files with the correct extensions then the following should work:

    type NUL > test.html
    type NUL > test.js