The above command will create a new file as Luke mentioned, but the file will be override by the empty if the file already exists.
type nul > filename.txt
The above command will create a new file, but the file will also be override by the empty if the file already exists.
type nul >> filename.txt
The above command will create a new file, but file will not be override by the empty file if the file already exists.
call >> filename.txt
The above command will create a new file, but file will not be override by the empty file if the file already exists.
New-Item script.txt
The above command will create a new file, but file will not be override by the empty file if the file already exists. (only works in Power Shell)
notepad index.html
This command will create/open the file in notepad (not recommended)
$>>filename.js
This command will give you ERROR ('$' is not recognized as an internal or external command,) but it will create a file (does not override the contents of the file already exists)
.>script.js
This command will give you ERROR ('.' is not recognized as an internal or external command,) but it will create a file (it does override the contents if the file already exists)
There could be more, But I guess these are more than enough. If you ask me which one I use the it would be $>>filename.js .
There are many ways you can do that:
The above command will create a new file as Luke mentioned, but the file will be override by the empty if the file already exists.
The above command will create a new file, but the file will also be override by the empty if the file already exists.
The above command will create a new file, but file will not be override by the empty file if the file already exists.
The above command will create a new file, but file will not be override by the empty file if the file already exists.
The above command will create a new file, but file will not be override by the empty file if the file already exists. (only works in Power Shell)
This command will create/open the file in notepad (not recommended)
This command will give you ERROR ('$' is not recognized as an internal or external command,) but it will create a file (does not override the contents of the file already exists)
This command will give you ERROR ('.' is not recognized as an internal or external command,) but it will create a file (it does override the contents if the file already exists)
There could be more, But I guess these are more than enough. If you ask me which one I use the it would be
$>>filename.js
.I hope it helps.
wow thank you for this much help, I appreciate that 😁
It's my pleasure 😊