473,770 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

filesystemobjec t.createfolder error codes

RdS
Hello,

I have been searching for what createfolder can return or does return.
Where on MSDN can I find what a MS method returns? I have searched for
filesystemobjec t.createfolder errors, error codes, error, etc. and cannot
find what it returns. The syntax document for the method on MSDN doesn't
list what it returns.

I need to know what the method can return so I can handle exceptions.

Thanks.
Aug 3 '06 #1
1 2670
Hi Rds,

The CreateFolder method will return an object if the folder is created
successfully. If it fails, the script will throw an error code instead of
return an error code.

There are no documents describing what error code will be thrown. However,
we can imagine that there are only a few reasons that this might occur. For
example, no permission, duplicate name or disk full are all common reasons.
You can just use an On Error Goto to handle the exception.

Kevin Yu
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Aug 4 '06 #2

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

Similar topics

0
3851
by: Marcelo Rizzo | last post by:
I am trying to get the name of a file with a specific extension (tmw) from several different directories. The problem I am having is that the program stops working on the second pass with an run time error 76. The paths are valid. I tested them and there is a file with the extension specified. Any help is appreciated Marcelo Rizzo
4
13094
by: Katja | last post by:
Dear all, I have a script that creates a FileSystemObject to be used for folder/directory manipulation. What I am trying to do is to search the drive if folder exist. If it doesn't it creates a new folder, but if the folder exists it deletes the old folder and creates a new one. The error refers to the line where I am deleting the folder. Here is my code: zip_path = "C:\cd_build"
1
1730
by: Suresh | last post by:
CreateFolder method does not produce a result from IIS. I tried many things including changing file permissions, web server permissions etc. to no avail. Can you please help?
4
1809
by: Bren | last post by:
In the code below I'm trying to create a directory. It works on the production server, but it doesn't on my dev server; I'm running XP Pro, but I don't belong to a domain; I'm running it in a workgroup instead. I've enabled the write option in IIS on the directory. Because I'm not in a domain, there's no security tab on the property dialog for the folder in Windows Explorer, so I can't assign IUSR access right there. Do you have any...
11
1322
by: Jessard | last post by:
Hi all, This seems like a really simple question but I don't think there is a simple answer. If there is I'd be glad to hear it. I am trying to create a folder, yep, that's all. I can do it with a vbscript but as soon as I put it in an asp page and load the page I get an error 500 message. Basically, I am using... if (not fso.FolderExists("\\ServerName\Clients\c_" & request.Querystring(i))) then
9
2568
by: MDW | last post by:
I'm not sure if this is a coding problem or an IIS settings problem. I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP development prior to rolling out my Web page to a hosting service like Brinkster. I've never done that before. I'm also trying to use the FileSystemObject to create a dynamic set of links to all the HTML files within a folder, so that I don't have to keep adding and removing links as my main...
10
1707
by: anjelone | last post by:
Hi. When I use CreateFolder() to create a folder with a space at the end, it creates the folder successfully, but still errors out with a "Path not Found" error. For example: <% Dim strCurrentPath
1
8453
by: Alex | last post by:
I am having issues with a script to upload files from a client to a webserver. The problem is not with the actual upload but with where it uploads. The whole process is supposed to create a folder (it does) then upload the file to that folder and this is where the problem comes in. The file is written to the parent directory, not the directory that was created for this user. Following is the code. <% strFTProotFolder =...
5
18939
by: Bob Miller | last post by:
I am try to convert the following routine into C# dim oFSO set oFSO = CreateObject("Scripting.FilesystemObject") dim sHomePath sHomePath = '\\server\c$\home\' dim oFolder Set oFolder = oFSO.CreateFolder(sHomePath & 'BOB')
0
9618
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
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
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...
0
10101
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
10038
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
8933
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...
0
6710
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
5354
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...
2
3609
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.