How to Add a File Using CMD Line
- 1). Click the Start button and type "cmd" into the search box to load the Command Prompt.
- 2). Type the following command to create a new file in Notepad:
notepad newfile.txt
Replace "newfile.txt" with your desired filename for the new file. Notepad will launch and ask if you want to create the new file. Click "OK." - 3). Type the following command to create a new text file with the DOS Editor:
edit newfile.txt
Replace "newfile.txt" with the name of your new file. The DOS Editor will launch, allowing you to type text in the new file. - 4). Type the following to create a new file in Microsoft Word:
"C:\Program Files\Microsoft Office\Office14\Winword.exe" /w
Source...