0
I have a Dir Command I use to make a text list of a directory of files.. "dir /a /b /-p /o:gen > z-file_list.txt"
Dose anyone know how I can change this so the text list dose not contain any extensions? So just the filename?
Thanks in advance!
- EDIT -
Sorry I wasn't clear. What I mean is that his command will save a txt file with a file list of the contents of the directory.
The text file will look like this
filename.ext
filename.ext
filename.ext
filename.ext
I am trying to work out how to get the text file to look like this.
filename
filename
filename
filename
Thanks.. sorry I was unclear.
Just remove ".txt" from the file name string? – Ramhound – 2016-09-24T02:02:08.630
that is just the file it is writing into, the data is saved in "z-file_list.txt". It dose not effect the dir command. – aJynks – 2016-09-24T02:07:14.280
Your question does not make sense. You asked how to generate a file without an extension. – Ramhound – 2016-09-24T02:13:39.113
oh, sorry. I have edited the question in the hopes of making it more clear. – aJynks – 2016-09-24T03:47:45.557