
You will get an error saying that the file does not exist (if it’s a new one it won’t), and would you like to create it. Simple, doesn’t work if you’re in an environment where no GUI tools are available. Method #3 – Using NOTEPAD (if available): C:'>notepad SN.txt This is very useful whenever you want to pipe any command output to a file. Note the “>” sign after the required text and before the filename. Method #2 – Using ECHO command: C:'>echo Product Key: TJQAW-VG29Y-G194Y-E7KRT-BYH9G > SN.txt Product Key: TJQAW-VG29Y-G194Y-E7KRT-BYH9G Method #1 – Using COPY command: C:'>copy con SN.txt Lamer note: The CD Key in all of the following examples is bogus, false, not true, don’t try to use it. There are several methods of creating text files from the CMD without using any 3rd-party tools, and I thought it was a good time to remind you of some of them: What I needed was a way to create a text file inside the VM, with the CD Key in it, and put it on the root of the VM’s hard disk, then to be able to just copy the file’s contents (the CD Key) to the installation prompt. Typing this CD Key wasn’t hard to do, but because it was past midnight I kept missing a letter or entering an “8” instead of a “B” and so I found myself typing the CD Key of the machine over and over again. So last night, when I installed the latest build of Windows Vista on a Virtual Machine, I had to manually enter the CD Key during the installation process. I had the CD Key on a separate file, but I didn’t think to write it into the ISO file.
#ATEXT FOR WINDOWS HOW TO#
However, this time, when I installed Windows Vista, I used an ISO image ( How to Write ISO Files to CD) that I obtained from Microsoft. Then, whenever I need to install Windows from that CD I have the CD Key readily available. One of the things I usually do with my own machines is to burn a file called SN.txt on the root of the installation CD, with the right CD Key inside. This article explains how to easily create a text file from the Command Prompt (CMD) in Windows 2000/XP/2003/Vista. How do I quickly create a text file from the Windows Command Prompt?
