How to create a new text file in DOS with the end result allowing me to rename the file?
Posted
by
Rolo
on Super User
See other posts from Super User
or by Rolo
Published on 2014-06-02T07:37:04Z
Indexed on
2014/06/02
9:32 UTC
Read the original article
Hit count: 224
dos
I would like an exact duplicate of the following procedure on a Windows computer using mouse clicks: Right Click in a directory and choose New and then Text Document.
When one does this, the text file is created with a default name of New Text Document AND it is also highlighted so that I can type in my own file name.
I would like to do this in DOS. I don't care what file name is originally created. What I want is for the name of the file to automatically be highlighted / able to be renamed, so that I can rename it.
How can DOS execute / simulate a rename command / an F2 being pressed on the keyboard to a file that it has just created?
© Super User or respective owner