How to move a directory to a network share

Posted on 2006-04-10
Last Modified: 2008-01-09
I'm experiencing difficulties moving a folder to a networks share (and even to a different volume!!)

All the method I've found and worked with, can only move dirs to the same volume (eg, c:\test c:\foo\test) but will fail if I use a different disk as destination (eg, c:\test e:\test).

I tried both with System.IO.Directory.Move() and Scripting.FileSystemObject.MoveFolder() but neither worked!

So, how to move a directory to a \\server\shared folder?

    1 Comment
    LVL 3

    Accepted Solution

    Easy enough, just COPY & REMOVE fixed any problem.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now