Click to See Complete Forum and Search --> : file download - file name


Gopinath
06-26-2003, 10:24 AM
i am having one folder in my virtual directory.
with in this folder i am having one txt file named as
ED000001_06262003084040_DCOM.zip

i am having one anchor link to download the file.
but i am displaying anchor link text just as DCOM.zip
when click the DCOM.zip, the file is downloaded in clients system with the file ED000001_06262003084040_DCOM.zip.
But i want to download the file with DCOM.zip.
is it possible.
it means when downloading a file, i want to rename or change the actual file name what i have in my virtual directory

thanq

-gopi

munas
06-27-2003, 05:55 AM
i hope this will make u cool...

<%
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "ED000001_06262003084040_DCOM.zip","DCOM.zip"
%>

<a href="DCOM.zip">DownLoad</a>

Gopinath
06-30-2003, 08:30 AM
thanq dave
its working