Anonymous_User Absent Member.
Absent Member.
2910 views

Attachments with spaces in filenames

How do you specify attachments with spaces in the path and/or file names
when using the sendmail token? Attachments without spaces work fine,
spaces cause the token to fail.

Thanks
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Attachments with spaces in filenames

Hello,

Have you tried surrounding the path with extra quotes?

Regards,

Shane

In article <QRaLc.6824$gg.2271@prv-forum2.provo.novell.com>,
mwhyte@dhcr.state.ny.us says...
> How do you specify attachments with spaces in the path and/or file names
> when using the sendmail token? Attachments without spaces work fine,
> spaces cause the token to fail.
>
> Thanks
>

0 Likes
rrawson Honored Contributor.
Honored Contributor.

Re: Attachments with spaces in filenames

Using the fileSystemObject I changed the names into 8.3 names (the shortPath method):

function shortName(longName as string) as string
dim bulb as file
dim FSO as object

'instantiate
set FSO = CreateObject("Scripting.FileSystemObject")
set bulb = FSO.getFile(longName)

'return results
shortName = bulb.shortPath

'destructors
set bulb=nothing
set FSO=nothing

end function
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.