473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to download a file from Server to client local pc without user intervention?

Dear Friends,

How to download a file from server to client local pc without user
intervention ie without the save as popup window.

Can you give me step by step.

Thanks

Jul 19 '06 #1
4 2915
Ashok,

That should be normally prevented by the securitiy options. It should be
impossible without any user intervention, if that user has not loaded any
special software from you that makes that possible (what is of course an
action).

I hope that this gives an idea,

Cor

"Ashok" <ml*****@gmail.comschreef in bericht
news:11**********************@m79g2000cwm.googlegr oups.com...
Dear Friends,

How to download a file from server to client local pc without user
intervention ie without the save as popup window.

Can you give me step by step.

Thanks

Jul 19 '06 #2
"Ashok" <ml*****@gmail.comwrote in news:1153278703.862556.155520
@m79g2000cwm.googlegroups.com:
How to download a file from server to client local pc without user
intervention ie without the save as popup window.
Is this through a VB app or ASP.NET app?
Jul 19 '06 #3
With VB.NET, I use two methods: You may use ftp connection or internal My.Computer.Network.UploadFile/DownloadFile commands...
Public Sub Upload()

''Upload file

'Dim ftp As FtpWebRequest

'ftp = FtpWebRequest.Create(Url & "/" & ReportFile)

'ftp.Method = WebRequestMethods.Ftp.UploadFile

'Dim sourceStream As New StreamReader(Application.StartupPath & "\" & ReportFile)

'Dim fileContent As String = sourceStream.ReadToEnd()

'sourceStream.Close()

'ftp.ContentLength = fileContent.Length

'Dim fileBytes() As Byte

'Dim encoding As New System.Text.ASCIIEncoding()

'fileBytes = encoding.GetBytes(fileContent)

'ftp.Credentials = New NetworkCredential(login, pass)

'Dim requestStream As Stream = ftp.GetRequestStream()

'requestStream.Write(fileBytes, 0, fileContent.Length)

'requestStream.Close()

'Dim response As FtpWebResponse = ftp.GetResponse()

'Console.WriteLine("Upload status: {0}", response.StatusDescription)

'response.Close()

''Delete file

'Dim ftp As FtpWebRequest = WebRequest.Create(Url & "/" & UserFile)

'ftp.Method = WebRequestMethods.Ftp.DeleteFile

'ftp.Credentials = New NetworkCredential(Login, Pass)

'Dim response As FtpWebResponse

'Try

' response = ftp.GetResponse

' Console.WriteLine("Delete status: {0}", response.StatusDescription)

' response.Close()

'Catch ex As Exception

' 'Console.WriteLine("Delete status: {0}", response.StatusDescription)

'End Try

'Exit Sub

Dim _Updated As Boolean = True

Try

'Url = "http://ftp.domain.com/folder/"

My.Computer.Network.UploadFile(Application.Startup Path & "\" & UserFile, Url & "/" & UserFile, Login, Pass, False, 30 * 1000, FileIO.UICancelOption.DoNothing)

Catch ex As Exception

_Updated = False

Debug.Print("UPLOAD USERFILE FAIL: " & UserFile)

End Try

End Sub

Jul 19 '06 #4
"Ashok" <ml*****@gmail.comschrieb:
How to download a file from server to client local pc without user
intervention ie without the save as popup window.
'WebClient.DownloadFile'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: - - Pierre | last post by:
Hi all, I'm trying to come up with a script and I'm having a heck of a time... I require users to enter the size (in MB or KB) of the attachment they wish to transfer/upload. As they enter...
16
by: Bob Moore | last post by:
We have a requirement to put a client onto machines intended for some telephony work. The database access will be via ASP.Net pages, and that's fine, but the telephony stuff requires access to some...
3
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws =...
6
by: Jatin | last post by:
Hey Guys I have a web application that allows users to download files. But the files are not hosted on the webserver. The files are stored on external servers and are referenced by a URL/URI....
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
2
by: maralikatti | last post by:
Hi All, I have a .aspx page, through which I want to download a file from web-server to client machine's known path, without user intervention (download dialog should not appear). Can anybody...
6
by: raymond_b_jimenez | last post by:
I need to download a file from an Intranet web site and feed it into a program on the PC where the browser is running. Browser is Internet Explorer. Both Javascript and VBscript are options. Which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.