Click here to Skip to main content
15,881,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrinting Code Pin
parth.p11-Apr-08 6:27
parth.p11-Apr-08 6:27 
GeneralRe: Printing Code Pin
Dave Kreskowiak11-Apr-08 7:21
mveDave Kreskowiak11-Apr-08 7:21 
GeneralRe: Printing Code Pin
parth.p11-Apr-08 8:11
parth.p11-Apr-08 8:11 
QuestionHow can I copy an existed Excel file to a new Excel file (different name)? Pin
ATC11-Apr-08 5:26
ATC11-Apr-08 5:26 
AnswerRe: How can I copy an existed Excel file to a new Excel file (different name)? Pin
parth.p11-Apr-08 6:31
parth.p11-Apr-08 6:31 
GeneralRe: How can I copy an existed Excel file to a new Excel file (different name)? Pin
ATC11-Apr-08 6:46
ATC11-Apr-08 6:46 
GeneralRe: How can I copy an existed Excel file to a new Excel file (different name)? Pin
parth.p11-Apr-08 6:57
parth.p11-Apr-08 6:57 
GeneralGetting size of a file on a FTP site Pin
jdionne66611-Apr-08 3:50
jdionne66611-Apr-08 3:50 
I keep getting

The remote server returned an error: (500) Syntax error, command unrecognized.

When I try to get the size of a file, The code matches what I found on the net and I also download a class with this function in it and I still get the same error. This has been driving me nuts for days now, I can't find any thing else on the matter on the net!

here is the code:

Dim u As New System.Uri("ftp://192.168.0.33/logo.ycb")

Try

Dim FTPclient2 As System.Net.FtpWebRequest = CType(System.Net.FtpWebRequest.Create(u), System.Net.FtpWebRequest)

FTPclient2.Credentials = New System.Net.NetworkCredential(mLogin, mPassword)

FTPclient2.UseBinary = False

FTPclient2.Method = System.Net.WebRequestMethods.Ftp.GetFileSize

Dim resp As System.Net.FtpWebResponse = CType(FTPclient2.GetResponse(), System.Net.FtpWebResponse)

Debug.WriteLine(FTPclient2.ContentLength)

Catch ex As Exception
Debug.WriteLine(ex.Message)

End Try

Please does someone know why this is happening?

I try both values for the Usebinary property also
GeneralRe: Getting size of a file on a FTP site Pin
Dave Kreskowiak11-Apr-08 7:12
mveDave Kreskowiak11-Apr-08 7:12 
GeneralRe: Getting size of a file on a FTP site Pin
jdionne66611-Apr-08 7:34
jdionne66611-Apr-08 7:34 
GeneralRe: Getting size of a file on a FTP site Pin
Dave Kreskowiak11-Apr-08 7:44
mveDave Kreskowiak11-Apr-08 7:44 
GeneralRe: Getting size of a file on a FTP site Pin
jdionne66611-Apr-08 7:52
jdionne66611-Apr-08 7:52 
GeneralRe: Getting size of a file on a FTP site Pin
Luc Pattyn11-Apr-08 8:19
sitebuilderLuc Pattyn11-Apr-08 8:19 
GeneralRe: Getting size of a file on a FTP site Pin
jdionne66611-Apr-08 8:33
jdionne66611-Apr-08 8:33 
Questiondate time...insert to database Pin
Member 444291611-Apr-08 3:01
Member 444291611-Apr-08 3:01 
GeneralRe: date time...insert to database Pin
Dave Kreskowiak11-Apr-08 7:11
mveDave Kreskowiak11-Apr-08 7:11 
GeneralRe: date time...insert to database Pin
Christian Graus11-Apr-08 12:20
protectorChristian Graus11-Apr-08 12:20 
GeneralRe: date time...insert to database Pin
Dave Kreskowiak11-Apr-08 18:17
mveDave Kreskowiak11-Apr-08 18:17 
Generalwhether file exists Pin
Sebastian T Xavier11-Apr-08 2:05
Sebastian T Xavier11-Apr-08 2:05 
GeneralRe: whether file exists Pin
Dave Kreskowiak11-Apr-08 3:04
mveDave Kreskowiak11-Apr-08 3:04 
GeneralRe: whether file exists Pin
parth.p11-Apr-08 6:39
parth.p11-Apr-08 6:39 
QuestionClick Once Deployment Pin
Member 471821410-Apr-08 23:56
Member 471821410-Apr-08 23:56 
AnswerRe: Click Once Deployment Pin
Mycroft Holmes11-Apr-08 14:42
professionalMycroft Holmes11-Apr-08 14:42 
QuestionWhich delimiter i have used while parsing a string with multiple delimeters? Pin
BooleanTrue10-Apr-08 23:43
professionalBooleanTrue10-Apr-08 23:43 
AnswerRe: Which delimiter i have used while parsing a string with multiple delimeters? Pin
Herl the Pearl11-Apr-08 0:02
Herl the Pearl11-Apr-08 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.