473,463 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Create Directory in a shared newtok directory

How can I create a directory within a shared ntwork directory??

sServerName - is the Server name

"\Docs" - is the shared directory

"\Others" - is the directory to create.

The following does not work, although I can through code open and copy files
from "\Docs"

Directory.CreateDirectory(sServerName & "\Docs" & "\Others")

Best wishes

Paul Bromley
Nov 21 '05 #1
2 2180
Imports System.IO

Directory.CreateDirectory(\\Myserver\c$\deleteme\a bcedf)

Where:

Myserver = is the shared network resource
deleteme = is a shared directory (a shared directory in the server...)
abcdef = is the shared directory you are trying to create
Yonas


"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How can I create a directory within a shared ntwork directory??

sServerName - is the Server name

"\Docs" - is the shared directory

"\Others" - is the directory to create.

The following does not work, although I can through code open and copy files from "\Docs"

Directory.CreateDirectory(sServerName & "\Docs" & "\Others")

Best wishes

Paul Bromley

Nov 21 '05 #2
Yonas,
Many thanks!

Directory.CreateDirectory("\\" & sServerName & "\Docs" & "\Others")

Above worked fine for me!

Best wishes

Paul Bromley

"Yonas hagos" <y_*****@yahoo.com> wrote in message
news:Og*************@TK2MSFTNGP12.phx.gbl...
Imports System.IO

Directory.CreateDirectory(\\Myserver\c$\deleteme\a bcedf)

Where:

Myserver = is the shared network resource
deleteme = is a shared directory (a shared directory in the server...)
abcdef = is the shared directory you are trying to create
Yonas


"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How can I create a directory within a shared ntwork directory??

sServerName - is the Server name

"\Docs" - is the shared directory

"\Others" - is the directory to create.

The following does not work, although I can through code open and copy

files
from "\Docs"

Directory.CreateDirectory(sServerName & "\Docs" & "\Others")

Best wishes

Paul Bromley


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mickey | last post by:
When I try to create a new web application in VS Studio .NET 2003 at a simple default location eg: http://localhost/WebApplication1 I get the following error: Visual Studio .NET cannot create or...
11
by: Andre | last post by:
Hi, I have ASP.NET application running on standalone (not part of the domain) Windows 2003. I use forms authentication for my application. The problem I have is that I need to create and read...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
2
by: yxq | last post by:
Hello I want to create and delete the folder share, i found that it is ok for generic folder, but it does not work for Root directory(i.e c:\, d:\) The code...
0
by: Greg Conely via .NET 247 | last post by:
I am creating a application that will be using plugins. I am doing this so that when I want to let this application work with another type of dbase system, I only have to write\install one plugin,...
2
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to...
6
by: jzdeng | last post by:
Hi, All I use VS 2005 to create a web service. The web service is used to create a sheared folder. It works fine we I run it from VS 2005. But, when I move it to inetpub, it does not work...
1
by: Matt F | last post by:
I need to create a folder in code, and also set sharing to being shared to everyone with full control (or some such variation of security) What I'm doing now is: If Not...
1
by: Claire | last post by:
Ive written a small string resource building utility that I send out to our translators. I have a setup project for each language we support, which picks out a group of 12 english resx files plus...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.