473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MkDir "Path/File error"

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\Attachments\" & 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\Attachments\" & strUniversityNo

But still this doesn't work.


Please help.
Sep 5 '06 #1
3 8098
PEB
1,418 Expert 1GB
Hi,

Try:

MkDir "\\BC123456\Attachments\" & Mid(str(Me.UniversityID.Value),2,len(str(Me.Univer sityID.Value)))
Sep 5 '06 #2
PEB
1,418 Expert 1GB
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\blla and are done to search for a drive!

Have a nice luck!
Sep 5 '06 #3
LogOff
1
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
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...
2
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...
1
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...
4
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
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:...
2
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...
23
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'; ...
1
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(); ?>...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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,...

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.