473,748 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ 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.Creat eDirectory(sSer verName & "\Docs" & "\Others")

Best wishes

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

Directory.Creat eDirectory(\\My server\c$\delet eme\abcedf)

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******** ********@TK2MSF TNGP15.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.Creat eDirectory(sSer verName & "\Docs" & "\Others")

Best wishes

Paul Bromley

Nov 21 '05 #2
Yonas,
Many thanks!

Directory.Creat eDirectory("\\" & sServerName & "\Docs" & "\Others")

Above worked fine for me!

Best wishes

Paul Bromley

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

Directory.Creat eDirectory(\\My server\c$\delet eme\abcedf)

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******** ********@TK2MSF TNGP15.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.Creat eDirectory(sSer verName & "\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
1968
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 open the application. The likeliest problem is that required components are not installed on the local Web Server. Run Visual Studio .NET setup and add the Web Development component. Now in IIS6 my default website points at c:\websites which...
11
3070
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 files on Windows domain network shared drives and also on shared via Samba Unix drives, which is equivalent to writing/reading to the workgroup computer. Please point, if possible, to detailed step by step description of what needs to be done. Thank...
27
2561
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: Mensaje de error del analizador: We can't load the type 'JULIAN.Global'.
2
5493
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 **************************************************** Dim mc As New ManagementClass("Win32_Share") Dim mo As ManagementObject Dim inParams As ManagementBaseObject Dim outParams As ManagementBaseObject
0
1601
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, not the entire app. I have created a base interface, it looks like: public interface myModel sub Initialize(byref DisplayPanel) sub Connect() sub Disconnect() sub Query() ...
2
2685
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 all!
6
3934
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 (folder is created but is not shared). Does anyone know how to solve this problem? Thanks.
1
3478
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 System.IO.Directory.Exists(My.Application.Info.DirectoryPath & "\NewTestFolder") Then
1
3144
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 their paired "foreign" resx for that language only and installs those resource files in a subdirectory somewhere. I'm trying to create a setup project in visual studio 2008. Ive got my Application Folder set up with my executable. Im now...
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9331
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9253
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6077
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.