+ Reply to Thread
Results 1 to 4 of 4

Thread: Moving Files in VB.net

  1. #1
    Comotose is offline VB.NET Forum Newbie Comotose is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2010
    Posts
    23
    Reputation
    7

    Default Moving Files in VB.net

    Hi folks.

    I'm stuck on Step Two of a two-step process.

    In Step One I allow website members to upload an image file which is placed in a temporary location on the web server. No problems with that part.

    Step Two is the bit I need help with. I'm just starting out with VB.NET and all the thousands of namespaces etc have got me a bit befuddled.

    After some other setting up, I need to move individual image files out of that temporary holder to a different folder. It's only necessary to operate on one file at a time -- bulk handling not required.

    QUICK SUMMARY:
    Using VB.net what's the trick to moving /path/images/myimage.img to /different-path/myimage.img. The image file should be removed from the original folder.

    A snippet of working code would be great, but any help most welcome.

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Age
    41
    Posts
    6,736
    Reputation
    653

  3. #3
    Comotose is offline VB.NET Forum Newbie Comotose is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2010
    Posts
    23
    Reputation
    7

    Default

    Cool, thanks. I bought the book!

    BTW, I do usually search before asking, but my terms didn't come up with that result that I noticed.

    It's been very handy having you in the same time zone ;-)

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Age
    37
    Posts
    10,843
    Reputation
    1443

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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