edda Posted November 22, 2007 Report Posted November 22, 2007 Hi all! I'm trying to make a program that can copy a file some times every day... Right now it can only copy the file local whit a File Copy Method but now I wont to be able to copy it to a ftp server... but i'm not sure how to do this... I know I cant use the file copy method.... Should i use the FtpWebRequest? I have tried this but cant get it to work... I use Visual Basic.net 2005 (This post is a extension on my previus post "Software to copy files to a ftp" so any moderator Please feel free to delete that one...) Best Regards.
edda Posted November 23, 2007 Author Report Posted November 23, 2007 aaahh I goth it now... It worked when used this... Dim remoteLOC As String = server & Path.GetFileName(file) My.Computer.Network.UploadFile(file, remoteLOC, "User", "Password", True, 500) if anybody wonts to know...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now