text - Command to Create New File in Current Directory -


I would like to create a new text document in the current directory, named "new text document" highlighted for renaming. The text, just like you right-click the open folder & gt; New & gt; Text document

I want to direct it from the command line, or if it is not possible then the batch script

I just got% Windir% \ System32 \ notepad.exe and in the current folder Create a new document, or somehow launch it from the current directory.

Or I thought of creating a file called "new text" Document.txt "elsewhere on the computer, And maybe pointing to that file, and in the current directory It is copying .. but I would like to change it directly.

Does anybody know whether it is possible or not?

Thanks

Try it out:

  echo 2> NewTextDocument.txt   

This will redirect any error to NewTextDocument.txt.Because this command is valid (no error), it will produce new files with empty content.

Regarding redirection More:

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -