473,387 Members | 1,575 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,387 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 4299
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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,...
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...

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.