"Cc" <ko*****@singnet.com.sg> schrieb:
i try to download a file using web client but keep getting exception on
receive
WebClient1.DownloadFile("http://www.testing.net/cgi-bin/test/test.pl?action=download",
"c:\\aa.txt")
What exception are you getting?
Replace the "\\" with "\" in "c:\\aa.txt". Backslashes don't need to be
escaped inside VB string literals:
\\\
WebClient1.DownloadFile(..., "C:\aa.txt")
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>