Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 883
  • Last Modified:

Download files to specific folder without browse button

In a .net web site, I want to download a file to a specific location at client system without using Browse button to select the file locaiton.
Basically I want to copy the file from my server to the client in a specific locaiton with out selecting the folder
0
dilipsjain
Asked:
dilipsjain
  • 2
1 Solution
 
rachitkohliCommented:
My.Computer.Network.DownloadFile("http://www.URLtoDownloadFrom.net/file.html", "C:\filename.html")
0
 
athapaCEO / CTOCommented:
I don't think that is possible from the asp.net applications themselves. You could create an ActiveX component which runs in your web application which can take the command to save file and save to whatever location you want. But for this to work, your users needs to give permission to the ActiveX and .Net .  This is ok if your application is internal in your intranet but it could be difficult if your app is used by anyone outside of your network. (doable but you'll get a lot of support calls)
0
 
dilipsjainAuthor Commented:
Can I specify the downloading path once the customer tries to download the pertifular file?  Say once the web user click on download the save dialog box will come with the default download path what we want to specify (say c:\mydownloads or something)
0
 
athapaCEO / CTOCommented:
not directly from the web application
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now