Hi.
I have a doubt regarding command lines (using cmd.exe on Windows XP).
(I only hope it's ok to ask about this here?... In case not, though, I'd then greatly appreciate it if you could please direct me to the appropriate section/forum where I could request for help in regards to my doubt.)
From what I've been reading around, to make a list of the files in a folder, the command line is as below, right?
dir "path to the folder" /b /s > filelist.txt
My doubt is, what in the case of the folder for which one wants to create the list of files being named with more than a single word, well like "Documents and Settings" for example; is it also possible to use this command line in such case?
dir C:\Documents and Settings /b /s > filelist.txt
Or should it be typed in a different way then, or can it not be used at all, or?...
I'm asking because each time I try to use this command line to make a list of the files in a folder named with more than a single word (with spaces in between) I always get the message "File not found." and the resulting filelist.txt is either empty or incomplete (and I'm guessing that must be due to the spaces in the path to the folder?).
Pardon all of my ignorance (I truly am NOT AT ALL familiar with command lines) and thank you already for any further enlightenment and help.![]()




Reply With Quote



