?
Solved

How to move a directory to a network share

Posted on 2006-04-10
2
Medium Priority
?
485 Views
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?

Thanx!
0
Comment
1 Comment
 
LVL 3

Accepted Solution

by:
Gianluigi_Zanettini-MegaLab_it earned 0 total points
ID: 16418296
Easy enough, just COPY & REMOVE fixed any problem.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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…
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 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