.NETGURU
Creating and sharing directories
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-io' list.


Filipe Clemente
Hi,

How can I using VB.Net create a directory in a remote computer assuming that
i have the privileges.

Im using Directory.CreateDirectory(\\computer\c$\testing
<file://\\computer\c$\testing> )

When the computer is my machine it works when it is another machine it says
that cand find the path.
Am i doing this the right way?

How can i share a directory trough VB.Net?

Thanks in advance.

Filipe
Portugal
Reply to this message...
 
    
=?iso-8859-1?Q?Jo=E3o_Carreiro?=
Hi,

How can I using VB.Net create a directory in a remote computer assuming that
i have the privileges.

Im using Directory.CreateDirectory(\\computer\c$\testing
<file://\\computer\c$\testing> )

When the computer is my machine it works when it is another machine it says
that cand find the path.
Am i doing this the right way?

How can i share a directory trough VB.Net?

Thanks in advance.

Filipe
Portugal
Reply to this message...
 
    
Mike Rusaw
Filipe -

Did you ever get this figured out? I am haveing the same problem. None of the following work for me:

Directory.CreateDirectory( @"\\server\share" );
Directory.CreateDirectory( @"\\\\server\\share" );
Directory.CreateDirectory( @"\\server\\share" );

Seems like it doesn't really support going across the network. I verified that the destination path has full access for everyone.

Thanks,

--------------------------------
From: Mike Rusaw
Reply to this message...
 
    
Stephen Powell
Hi,
I seems to work for me. I am using:
Directory.CreateDirectory("\\computername\c$\directoryname")

I am running this on a domain controller on a windows 2003 server network and am logged in as Administrator. I have a feeling that it might not work if you dont have AD running, but thats just a guess.
Reply to this message...
 
 
System.IO.Directory




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification