I'm running the code below which normally works fine.
I've recently run into a problem, when I get the download dialog box the file name is changed from "HELLO.ARM.CAB" to
"HELLO[1].ARM.CAB".
Does anyone know why the [1] is being added to my filename?
Thanks
Dan
I've recently run into a problem, when I get the download dialog box the file name is changed from "HELLO.ARM.CAB" to
"HELLO[1].ARM.CAB".
Does anyone know why the [1] is being added to my filename?
Thanks
Dan
Code:
Dim strFilePath
strFilePath = "C:\Inetpub\[URL unfurl="true"]wwwroot\PPC\HELLO.ARM.CAB"[/URL]
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 1
objStream.LoadFromFile strFilePath
fn = "HELLO.ARM.CAB"
'Response.ContentType = "application/cab"
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment;filename=" & fn
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing