I am writing a Winforms program to replace a cmd batch file that uploads a file to an ftp site and the folder on that site is d:\UploadedFiles. The site is ftp://uapkb100.central.com. I can upload to the ftp site by using the following create stmts but I cannot figure out a way to upload the file to the d:\UploadedFiles folder. The cmd file used the following lines in its ftp text file. How can I do the same thing in my .Net program That is write to the correct folder.
:--DOS Cmd file stmts-----
UserID
Password
lcd d:/UploadedFiles
put SANION13.txt
'----My VB.2005 statements--------
Dim uploadResponse As FtpWebResponse = Nothing
Dim uploadRequest As FtpWebRequest = NothingftpFileName =
"ftp://uapkb100.central.com/" & txtFileName.TextuploadRequest = FtpWebRequest.Create(ftpFileName)
' --rest of stmts to write the file to ftp

FtpWebResponse.Method = Ftp.UploadFileWithUniqueName
Boulderdude
OneScrappyLady