Okay... lets see how good you self-proclaimed neowin geeks are... ;)
i have a unique situation... well, prolly not that unique but here goes. Our webhost does not allow the uploading or storage of executable files... (.exe, .com, .bat, etc). However, it's hard to tell your customers that they need to rename their files after downloading them. So here's what i'm trying to do...
we're uploading the files with .BMF extensions. I'd like to get them to rename themselves for the download... all i get is an error stating that:
Could not find file "c:\inetpub\wwwroot\download\test.EXE".
Sub Page_Load()
lblMsg.Text = nothing
dim F as New FileInfo(request.QueryString("F"))
If File.Exists(F.FullName) Then
?SendFile(GetFile(F), F)
Else
?lblMsg.Text = "File Not Found."
End If
End Sub
Function GetFile(ByVal F as FileInfo)
const EXE as string = ".EXE" 'executeable file extension - host won't allow.
dim FN as string = F.Name
Return Path.ChangeExtension(FN,EXE)
End Function
Sub SendFile(ByVal FN as string, ByVal F as FileInfo)
Response.Clear()
Response.AddHeader("Content-Disposition","attachment; filename=" & F.Name)
Response.AddHeader("Content-Length", F.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(Path.ChangeExtension(FN,".EXE"))
? ? ? ? ? ? ? ?Response.Flush()
End Sub
It couldn't hurt to nuke it and start with a fresh install.
But you might want to confirm that you can find drivers for certain things like chipsets or WIFI/LAN or whatever. Sometimes Windows Update can't find all of them.
I've had motherboards from major manufacturers where the drivers from Microsoft didn't work. I had to download the appropriate drivers directly from the manufacturer.
8GB cards shouldn't exist at 2025 at anything but the lowest tier. This is only a good deal if you only play older or lower fidelity games (in which case, you don't even need something this powerful) or if you only need it to tide you over for a year or two before becoming obsolete.
Question
best_uv_d_best
Okay... lets see how good you self-proclaimed neowin geeks are... ;)
i have a unique situation... well, prolly not that unique but here goes. Our webhost does not allow the uploading or storage of executable files... (.exe, .com, .bat, etc). However, it's hard to tell your customers that they need to rename their files after downloading them. So here's what i'm trying to do...
we're uploading the files with .BMF extensions. I'd like to get them to rename themselves for the download... all i get is an error stating that:
Could not find file "c:\inetpub\wwwroot\download\test.EXE".
Link to comment
https://www.neowin.net/forum/topic/138621-aspnetvb-server-file-storage/Share on other sites
2 answers to this question
Recommended Posts