Is there a way to turn a folder's filenames into a text file?
Lee,
May need: [snip]
You're right. I forgot that was ment for a .REG file. :-\ :-)
would show your text as given but the merging of a .reg file causes
two backslashes to equal one. I dunno why, just something I've noticed
The backslash is used as an so-called "escape" character. It is used to
mark certain characters (stored in a .REG file) as being used as literals.
Like an embedded double-quote (like in [program.exe "%1"]) being preceeded
by an escape-character, to indicate it should not be regarded as a special
character (end of a string here).
Example: "program.exe \"%1\""
Not remembering all the shortcut scripts but wouldn't that equate
to the root drive of the target folder?
Nope. :-)
The dot-dot is used with the DOS CD command to go one directory up, or when
provided in a path string, to remove the path-element just before it.
Regardless of, and that is the "trick", if that path-element points to a
folder or a file.
In other words:
"drive:\folder\filename\.."
will resolve to
"drive:\folder"
Oh blimey! I just realized that I'm trying to remove a file specification
where there most likely is none ... What I suggested would place the output
file in the parent of the folder which files are listed. :-(
... and I realized something else: the %1 could well contain embedded spaces,
so it must be enclosed in double-quotes (for *both* usages of %1):
@="Command.com /C DIR \"%1\" /a /o:gne \"%1\\ADIR.TXT\""
Regards,
Rudy Wieser
|