VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code brings a file from remote server to the client without asking the Save to disk dialog b

by Vishal Kulkarni (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 20th February 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code brings a file from remote server to the client without asking the "Save to disk" dialog box.This is very useful and much easier than

API Declarations


'This code brings a file from remote server to the client without asking the "Save to disk" dialog box
'Please feel free for any related querries
'Contact [email protected] for furthur details
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long


Rate This code brings a file from remote server to the client without asking the Save to disk dialog b



    Dim llRetVal As Long
    llRetVal = URLDownloadToFile(0, "http://www.abc.com/cde.txt", "c:\cde.txt", 0, 0)
End Function


Download this snippet    Add to My Saved Code

This code brings a file from remote server to the client without asking the Save to disk dialog b Comments

No comments have been posted about This code brings a file from remote server to the client without asking the Save to disk dialog b. Why not be the first to post a comment about This code brings a file from remote server to the client without asking the Save to disk dialog b.

Post your comment

Subject:
Message:
0/1000 characters