View Single Post
  #10  
Old November 6th 17, 08:55 AM posted to microsoft.public.win98.gen_discussion
R.Wieser
External Usenet User
 
Posts: 111
Default Is there a way to turn a folder's filenames into a text file?

Lee,

I knew I had seen that before though and it was probably from within
batch work coming from another batch


:-) I'm using it in the same way, for the same reason.

%1 then and there resolves to the full filename and pathname of calling
batch
file itself


I think you ment %0 there ...

I only gave it a couple shots and that does not qualify as 'testing' by
any
means


Another thing you can do: Open the registry and search for "%1" (without the
doublequotes -- or, now It think of it, with). You will find entries which
show them enclosed like that.

.... But not always. It depends on the program and how it looks at its
arguments: If it only expects a pathname it will not even try to parse
anything, but will regard the whole argument string (including spaces and
other whitespace stuff) as a single argument. Other programs will accept
leading switches (mostly preceeded by a forward slash), but the moment it
doesn't find such a switch it regards the rest (upto the line end) as the
last, single argument.

But as rule-of-thumb, enclose path/filenames in doublequotes so you're not
caught with your pants down when either contains a space character. :-)

Unfortunately I wouldn't know what a literal was if it came up and bit me
in the hindquarters - not your problem to explain either


Same with me actually, I just knew about that backslash being an escape
character, and how to use it to embed doublequotes in a string.

What I normally do is to enter everything into the registry without
bothering about literals, and just let the registries export mechanism do
its work (and have it escape everything it thinks is neccesary).

Hey, I'm a hobby prorammer, I'm *expected* to be lazy like that. :-)

Regards,
Rudy Wieser