Cretae a new file with cmd

To create a new file using the Command Prompt (Cmd) in Windows, you can use the following command:

type nul > newfile.txt

This will create a new file called newfile.txt in the current directory.

Here's how it works:

You can also use the echo command to create a new file with some initial content:

echo. > newfile.txt

This will create a new file called newfile.txt with a single newline character (\n) as its contents.

Alternatively, you can use the touch command (available in Windows 10 and later) to create a new file:

touch newfile.txt

This is similar to the type command, but it's a more straightforward way to create a new file.