473,224 Members | 1,692 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,224 software developers and data experts.

cannot script-delete / script-move folders

I run windows XP and IIS 5.1 and the system doesn't let me to delete or move
folders using FileSystemObject.DeleteFolder(path,force) or
FileSystemObject.MoveFolder(origin,destination). I allow all permitions to
that web folder (Read, Right, Source Access)

I notice that in Windows XP cannot uncheck the Read-Only option in any
folder options. If you uncheck and press OK the next time you open the
folder properties again the check box will be checked again
Jul 19 '05 #1
12 4292
anybody??
Jul 19 '05 #2
If you post some helpful info such as what code you're using and what error
or non-expected behavior occurs, you may get a response. "Doesn't let me
delete" doesn't really tell anyone anything.

--

Ray at home
Microsoft ASP MVP
"Apostolis K." <ap*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
anybody??

Jul 19 '05 #3
You are right Ray. I apologise.
Here is the story
I've got 2 directories in the Root directory with 1 subdirectory inside each
of them (Total 4 directories)

C:\test1
C:\test1\test1a
C:\test2
C:\test2\test2a

There is one file named "1.txt" inside the directory C:\test1\test1a
When I run each of the codes I get the following error

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

Note that I allow all permitions for the web folder (Read/Write etc)

The codes are:
------*temp1.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFolder=objFSO.GetFolder("C:\test1\test1a")

objFolder.Move "C:\test2"
%>
-----------------------------------------------------------------

------*temp2.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFolder=objFSO.GetFolder("C:\test1\test1a")

objFolder.Delete TRUE
%>
-----------------------------------------------------------------

------*temp3.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFile=objFSO.GetFile("C:\test1\test1a\1.txt")

objFile.Move "C:\test2"
%>
-----------------------------------------------------------------

------*temp4.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFile=objFSO.GetFile("C:\test1\test1a\1.txt")

objFile.Delete TRUE
%>
-----------------------------------------------------------------
Jul 19 '05 #4

"Apostolis K." <ap*********@hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...

------*temp1.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFolder=objFSO.GetFolder("C:\test1\test1a")

objFolder.Move "C:\test2"

You want to move it to C:\test2\
You must include the \ at the end.

------*temp2.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFolder=objFSO.GetFolder("C:\test1\test1a")

objFolder.Delete TRUE
%>
This code is fine. Do you get the error on this? If so, make sure that
your IUSR account (or the account your page is using) has permission to
delete the folder.

------*temp3.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFile=objFSO.GetFile("C:\test1\test1a\1.txt")

objFile.Move "C:\test2"
You want to move it to C:\test2\
You must include the \ at the end.
------*temp4.asp*----------------------------------------------
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemOb ject")
set objFile=objFSO.GetFile("C:\test1\test1a\1.txt")

objFile.Delete TRUE


This code is fine. Do you get the error on this? If so, make sure that
your IUSR account (or the account your page is using) has permission to
delete the folder.

If you haven't already done so, you should download the WSH documentation
here.
http://www.microsoft.com/downloads/d...6-1C4099D7BBB9

Ray at work
Jul 19 '05 #5
p.s. When I mention permissions, I'm talking about NTFS file system
permissions, not the permissions that you see in the IIS console.

Ray at work

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
This code is fine. Do you get the error on this? If so, make sure that

your IUSR account (or the account your page is using) has permission to
delete the folder.

Jul 19 '05 #6
> p.s. When I mention permissions, I'm talking about NTFS file system
permissions, not the permissions that you see in the IIS console.


I am the computer's Administrator. How do I change NTFS Permitions?
Jul 19 '05 #7
Right click, click properties, go to the security tab.

--

Ray at home
Microsoft ASP MVP
"Apostolis K." <ap*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
p.s. When I mention permissions, I'm talking about NTFS file system
permissions, not the permissions that you see in the IIS console.


I am the computer's Administrator. How do I change NTFS Permitions?

Jul 19 '05 #8
> Right click, click properties, go to the security tab.

No such option in WinXP
Jul 19 '05 #9
> Right click, click properties, go to the security tab.
I looked out the Windows Help for file and folder sharing and somewhere it
sais to click the Security Tab. I can't find that tab.
There are only a General / Sharing / Web Sharing and Customize Tabs. Under
Sharing Tab it only allows to share files/folders on the network but I don't
belong to any network. Moreover it sais to move my folders inside the Shared
Documents for Local Sharing
Jul 19 '05 #10
> I looked out the Windows Help for file and folder sharing and somewhere it
sais to click the Security Tab. I can't find that tab.


Click on Start>Settings>Control Panel>Folder Options
Click on the View tab
Scroll to the bottom of the list and turn off "Simple File Sharing".

The security tab should now display.
Jul 19 '05 #11
Try inquiring about this in an XP group. Assuming your drive is NTFS, you
have some issues where the security tab is hidden, which is some stupid
default in a non-domain-member XP install. I hate that...

Ray at work

"Apostolis K." <ap************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Right click, click properties, go to the security tab.


No such option in WinXP

Jul 19 '05 #12
It worked. Thanks
Jul 19 '05 #13

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

Similar topics

2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
5
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
1
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
1
by: kw.housing | last post by:
I have all the library already in path: $ ls -l /opt/IBM/db2/lib64 | grep libdb2o -r-xr-xr-x 1 bin bin 7757295 Jul 12 2006 libdb2osse.a* -r--r--r-- 1 bin bin ...
3
by: Sindhu Rani | last post by:
i hav created 3 classes in 3 different files. am gettin an error durin compilation. wat shud i do??? C:\s\source>javac -d ..\classes devtestdrive.java devtestdrive.java:5: cannot resolve symbol...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.