Subject: | |
From: | |
Reply To: | |
Date: | Tue, 14 Nov 2000 12:43:27 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Steve :)
um... spaces in names under the DOS namespace are sorta legal.... DOS
shows the long name in the right most column on a DIR output but references
the file by a filename that has the spaces removed... and if the name
exceeds 8 characters DOS changes the name to be the first 6 non-special
characters and appends '~?' onto the end where '?' is a number from 1 to 9
.... I haven't a clue as to what happens when a file name's changed by DOS
and there are already 9 files that have the same first 6 letters after being
changed.... guess that exercise is left up to the student to perform and
research... hehe
Art "DOS Batch Files = 3k Command Files " Bahrs
P.S. I haven't tried any of this under Win2k... so I have no clue how it
will perform! hehe
----- Original Message -----
From: "Steve Dirickson" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, November 14, 2000 12:23 PM
Subject: Re: [HP3000-L] OT: PC Batch file expert
> > I believe that Steve Dirickson's script will have problems if
> > the directory name or e-mail address has a space in it.
>
> Correct. Of course, then it violates the format specified for the input
> file:
> "As written, the delimiter between the directory name and address can be
a
> space or a tab,....".
>
> If you need spaces in directory names, change the 'for' command to look
like
> this:
> for /F "eol=; tokens=1,2 delims=?" %%i in (%1) do call fwdparse "%%i"
%%j
>
> with data like
> dummy dir [log in to unmask]
>
> If you also need spaces in the names (is that legal?), wrap the '%%j'
> parameters in double quotes to match the '%%i' parameters. This will put
the
> double quotes into the forward.ima file. If '?' doesn't work as a
delimiter,
> use something else--ideally a character that is invalid both in
> directory/file names and in addresses (if there is such a character).
>
> Steve
|
|
|