473,662 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2928
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.goo glegroups.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.go oglegroups.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.Net work.UploadFile/DownloadFile commands...
Public Sub Upload()

''Upload file

'Dim ftp As FtpWebRequest

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

'ftp.Method = WebRequestMetho ds.Ftp.UploadFi le

'Dim sourceStream As New StreamReader(Ap plication.Start upPath & "\" & ReportFile)

'Dim fileContent As String = sourceStream.Re adToEnd()

'sourceStream.C lose()

'ftp.ContentLen gth = fileContent.Len gth

'Dim fileBytes() As Byte

'Dim encoding As New System.Text.ASC IIEncoding()

'fileBytes = encoding.GetByt es(fileContent)

'ftp.Credential s = New NetworkCredenti al(login, pass)

'Dim requestStream As Stream = ftp.GetRequestS tream()

'requestStream. Write(fileBytes , 0, fileContent.Len gth)

'requestStream. Close()

'Dim response As FtpWebResponse = ftp.GetResponse ()

'Console.WriteL ine("Upload status: {0}", response.Status Description)

'response.Close ()

''Delete file

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

'ftp.Method = WebRequestMetho ds.Ftp.DeleteFi le

'ftp.Credential s = New NetworkCredenti al(Login, Pass)

'Dim response As FtpWebResponse

'Try

' response = ftp.GetResponse

' Console.WriteLi ne("Delete status: {0}", response.Status Description)

' response.Close( )

'Catch ex As Exception

' 'Console.WriteL ine("Delete status: {0}", response.Status Description)

'End Try

'Exit Sub

Dim _Updated As Boolean = True

Try

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

My.Computer.Net work.UploadFile (Application.St artupPath & "\" & UserFile, Url & "/" & UserFile, Login, Pass, False, 30 * 1000, FileIO.UICancel Option.DoNothin g)

Catch ex As Exception

_Updated = False

Debug.Print("UP LOAD 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.Down loadFile'.

--
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
5644
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 the number and move over to the next field (using onBlur or...), I would like a popup/alert window warning them that this attachment size would take "x" amount of time based on a speed of 24 kilobits per second (kbps). If they are happy with the...
16
7362
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 legacy servers. I've prototyped the client itself as Winforms/C# (which was NOT fun for a C++ curmudgeon like me, but I'll live). The problem is, I'd like to be able to ensure that the user is always running the latest client (our current fat...
3
6785
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 = createobject("Wscript.shell") set oexec = ws.exec("<%=server.mapPath(./xx.vbs)%>") But it give error "the path/xx.vbs is not a valid win32 application" May i know why? I think some setting in registry will open the vbs file
6
2702
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. Since my application restricts the number of downloads for the file per user, i cannot show the user the URL/URI of the server hosting the file. Therefore i need to some how route the file via my webserver, and then use the Response to stream the...
2
6948
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
2
1704
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 suggest me how to do this. Thanks a lot in advance. ~~Manju
6
4846
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 would be my best options? Examples would be welcomed! rj
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.