473,698 Members | 2,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MkDir "Path/File error"

52 New Member
I wanted to create a subfolder in a directory and I used the MkDir statement but it gives me an error like "Path/File access error"

Here are the codes:

MkDir "\\BC123456\Att achments\" & Me.UniversityID .Value

BC123456 = shared computer
Attachments = shared folder
Me.UniversityID = is a text box on the form with a number format

I tried to use the Str() function but still it gives me an error. I even tried this:

Dim strUniversityNo as string
strUniversityNo = Me.UniversityID
MkDir "\\BC123456\Att achments\" & strUniversityNo

But still this doesn't work.


Please help.
Sep 5 '06 #1
3 8132
PEB
1,418 Recognized Expert Top Contributor
Hi,

Try:

MkDir "\\BC123456\Att achments\" & Mid(str(Me.Univ ersityID.Value) ,2,len(str(Me.U niversityID.Val ue)))
Sep 5 '06 #2
PEB
1,418 Recognized Expert Top Contributor
Also you can try to add one or two letters before the number!

And finally something that can work is to map a network drive in Windows Explorer and Assign to this shared computer a letter For exemple Y

Then create mkdir with the specified letter!

Some commands don't use the path like \\Server\bla\bl la and are done to search for a drive!

Have a nice luck!
Sep 5 '06 #3
LogOff
1 New Member
Check that access to your shared folder is available (folder location and file permissions).

(don't forget that mkdir instruction allows you to create a single folder at once)
Oct 13 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3944
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with Python 2.3) - PIL 1.1.4 - Installer or py2exe : latest versions.
2
2925
by: Stephen Briley | last post by:
For some reason, my posts are scrubbed as attachments. Lets hope that sending from the yahoo account works. I'm new to Python and I'm trying to do some database work with MS Access, but I can't seem to get around a "datatype mismatch error". Here's an example table that I'm working with... ID name dept 1 steve acct
1
2534
by: wireless200 | last post by:
I'm running EM on my local box and sql server on a remote internet accessed box. How do I specify a file path for a DTS package to access files on the remote box? For example, to run a local dts package the filepath is c:\filepath\file.txt. How would I change the file path/name to allow the dts package to
4
23743
by: jeanclaude.hernandez | last post by:
Hello, how can I get the "path to executable" of a windows service from a c# application ? I have tried the ServiceContoller class, ServiceBase class with no results... Thanks,
1
1649
by: Jim | last post by:
I run the following code Application.ImportXML _ DataSource:="C:\TEMP\Audit\BatchData\BatchHeader.xml", _ ImportOptions:=acAppendData And get the error 'Path not found: 'C:\TEMP\Audit\BatchData\BatchHeader.xml.' Even though the file referenced is clearly there. Anybody had this
2
8685
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the .rpt (on the file system) to the control's ".ReportSource" property. i do this because i like to move new versions of the reports w/o having to rebuild the site. then i pass in filter criteria to the control's ".SelectionFormula"
23
24546
by: ticfranca | last post by:
Hi, I'm getting this error in the code below: sub Pega_recorde { $database = 'bundinha'; $host = 'localhost'; $usuario = 'myhumoradm'; $senha = 'my8xr2d2'; $dbh=DBI->connect("DBI:mysql:database=$database;host=$host","$usuario","$senha") or die "Can't open DB: $!";
1
14030
by: ChollaPete | last post by:
This code: <form action="processScan.php" method="get"> <p> <?php print "Scan name: <input type=\"file\" name=\"tScanFileName\" value= \"{$scanFileName}\"><br>"; addHiddenCarryons(); ?> <input type="submit">
0
1238
by: bluethunder | last post by:
Good day! I'm having a problem with my program with regards in reports. I'm using VB 6, .mdb as my back end and Crystal Report 8.5 for my reports. After I input the required data and press the print button, it gives me an error of: error opening file file could not be found: "Rpt", at file location: "Rpt" I don't know why the error occurs. Is there anyone who can help me?
0
8683
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
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8901
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
8871
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
5862
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
4371
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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 we have to send another system
2
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.