Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create a Folder using network path

Posted on 1999-06-30
3
Medium Priority
?
130 Views
Last Modified: 2010-05-02
Suppose there is a machine called "Sun" in my intranet and there is a folder "\\sun\Project\Document".

In VB6, how can I create a subfolder under this folder without the need to map any network drive?
0
Comment
Question by:slgal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Expert Comment

by:Inteqam
ID: 1520947
0
 

Accepted Solution

by:
DJM042098 earned 200 total points
ID: 1520948
Private Sub Command1_Click()

    MkDir ("\\sun\Project\Document\newfolder")

End Sub

0
 

Author Comment

by:slgal
ID: 1520949
Finally, I find that both MkDir or CreateFolder create folder using network.
I cannot do that previously just because of my silly mistake, as follow:

mkdir("\\sun\Project\Document\Testing")

It generates error because \\sun\Project\Document\ does not exist! :~~
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

722 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