+ Reply to Thread
Results 1 to 7 of 7

Thread: FTP Class Library?

  1. #1
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    1,037
    Blog Entries
    2
    Rep Power
    13

    FTP Class Library?

    I'm looking for a FREE FTP library for .NET.

    I've found a few that either (a) cost money or (b) stink. All I need is to upload a single file, once per month to MVS, and about the only thing standing in my way of automating this is a .NET FTP class library -- that I really don't want to write myself.
    Wolffy
    ------------------------
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    I'm unable to find much that meets your requirements, but maybe you can poke around at this for a while: CodeProject: FTP component written with fully managed code. Free source code and programming help

    I have a feeling you might end up either writing your own or rewriting someone elses script, however...
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #3
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    1,037
    Blog Entries
    2
    Rep Power
    13

    Yeah, I looked at that one and put it into my (b) category. It seems to work, but the documentation is practically non-existent. I just located another possible, with source code, that I'm stepping through now. If it works, I'll post back the link.
    Wolffy
    ------------------------
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    Quote Originally Posted by Wolffy View Post
    Yeah, I looked at that one and put it into my (b) category. It seems to work, but the documentation is practically non-existent. I just located another possible, with source code, that I'm stepping through now. If it works, I'll post back the link.
    Yeah, I figured you had come across that one...every component I looked at was either poorly documented and/or written or cost a few hundred dollars.

    If you do end up writing your own, you could post in the Code Samples forum for free
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  5. #5
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    1,037
    Blog Entries
    2
    Rep Power
    13

    Well, I may be SOL here. While I think I could manage to get this working using FtpWebRequest (tho some blog entries I've found say this can't be done to MVS or OS/400), I need to issue the QUOTE SITE command, which doesn't appear to be supported by FtpWebRequest. Bloody Heck.

    I did see an idea to run FTP in it's own process -- tho at the moment I'm considering a batch file and stuffing the FTP command into the console buffer -- ah, welcome to the 1980's.
    Wolffy
    ------------------------
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.

  6. #6
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    1,037
    Blog Entries
    2
    Rep Power
    13

    I was about ready to knuckle down and write something, but took one last look around the net. I came across an open source FTP .NET library here: .NET FTP, FTP .NET, FTP C#, FTP VB, C# FTP, VB FTP that is well documented. I've just now downloaded the source, and will see if it's a good as it first appears to be,
    Wolffy
    ------------------------
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.

  7. #7
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    1,037
    Blog Entries
    2
    Rep Power
    13

    I managed to get a clean compile of this library after only about 20 minutes. I had to make only two minor fixes:
    (a) OS/400 support didn't seem to be included. Since I don't care about OS/400, I just removed the references to it.
    (b) There were a few deprecated methods from .NET 1.1 that could easily be replaced with .NET 2.0 methods (1-1 replacement in each case). There was some conditional compilation in there for 2.0, but it wasn't complete.

    Once I got the clean compile, I included what I needed in my application, and got it to work first time! Total time spent: about 90 minutes.

    Highly Recommended
    Wolffy
    ------------------------
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.

+ Reply to Thread

LinkBacks (?)


Similar Threads

  1. class name is ambiguous
    By richyrich in forum .Net Development
    Replies: 11
    Last Post: August 12th, 2008, 11:11 AM
  2. Class library
    By Shem in forum .Net Development
    Replies: 11
    Last Post: May 22nd, 2008, 07:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO