Re: Closing the Gap on a file name

Roelof Otten <[email protected]> Sat, 31 May 2008 01:17:55 +0200
Newsgroups gmane.mail.the-bat.devel
Organization E-mailaholics International
Message-ID <[email protected]>
--===============1844573295==
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1";
  boundary="----------3E18114D2A5D8DEB"

------------3E18114D2A5D8DEB
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable

Hallo Brian,

On Fri, 30 May 2008 09:13:25 -0700GMT (30-5-2008, 18:13 +0200, where I
live), you wrote:

BA> Del C:\Output\%ToAddr~~%Header('X-Files').txt

BA> And it all works sucessfully, except when the file name has a gap. For
BA> example:    my life.txt     vs.      my_life.txt.

Not really a TB issue. Basically what you're using an MS DOS command
and MS DOS didn't support spaces in file names. With Windows the
workaround is to use Quotation marks around such names, so put those
in your file template, like:
Del "C:\Output\%ToAddr~~%Header('X-Files').txt"
In mid:[email protected] I gave you some links to
sites discussing batch files. Did you look there? Those sites should
cover elementary issues like this.

--
Groetjes, Roelof

Atari computers make great boat anchors
http://www.voormijalleen.nl/
The Bat! 4.0.24.16
Windows Vista 6.0 Build 6000=20
3 pop3 accounts
OTFE enabled
Quad Core 2.4GHz
4 GB RAM
------------3E18114D2A5D8DEB--



--===============1844573295==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline