473,549 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 FileSystemObjec t.DeleteFolder( path,force) or
FileSystemObjec t.MoveFolder(or igin,destinatio n). 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 4306
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*********@ho tmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.C reateObject("Sc ripting.FileSys temObject")
set objFolder=objFS O.GetFolder("C: \test1\test1a")

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

------*temp2.asp*----------------------------------------------
<%
Set objFSO=Server.C reateObject("Sc ripting.FileSys temObject")
set objFolder=objFS O.GetFolder("C: \test1\test1a")

objFolder.Delet e TRUE
%>
-----------------------------------------------------------------

------*temp3.asp*----------------------------------------------
<%
Set objFSO=Server.C reateObject("Sc ripting.FileSys temObject")
set objFile=objFSO. GetFile("C:\tes t1\test1a\1.txt ")

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

------*temp4.asp*----------------------------------------------
<%
Set objFSO=Server.C reateObject("Sc ripting.FileSys temObject")
set objFile=objFSO. GetFile("C:\tes t1\test1a\1.txt ")

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

"Apostolis K." <ap*********@ho tmail.com> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...

------*temp1.asp*----------------------------------------------
<%
Set objFSO=Server.C reateObject("Sc ripting.FileSys temObject")
set objFolder=objFS O.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.C reateObject("Sc ripting.FileSys temObject")
set objFolder=objFS O.GetFolder("C: \test1\test1a")

objFolder.Delet e 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.C reateObject("Sc ripting.FileSys temObject")
set objFile=objFSO. GetFile("C:\tes t1\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.C reateObject("Sc ripting.FileSys temObject")
set objFile=objFSO. GetFile("C:\tes t1\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******** ********@tk2msf tngp13.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*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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

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

Similar topics

2
2777
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 into this property in its Load event. So, I gave the BaseForm and the property 'abstract' modifier, and put the implementation of the property in the...
5
5990
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 leave the form to go back to the originating screen, I get a "The page cannot be displayed" screen for "Cannot find server or DNS Error" "Internet...
1
2579
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 leave the form to go back to the originating program, I get a "The page cannot be displayed" screen for "Cannot find server or DNS error" "Internet...
7
4526
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" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
1
6606
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 Express Edition x86: Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. ***EndOfSession***? Microsoft SQL Server...
3
16489
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 something in PHP that I don't have? Do I need to install more Linux packages? Or adjust PHP in some way?
1
4617
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 com.sun.j3d.utils.geometry.*; import javax.media.j3d.*; import javax.vecmath.*;
3
17099
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 the service using client stub, I get this error... Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot...
1
4676
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 227313 Jul 12 2006 libdb2osse_db2.a $ env | grep LIBPATH LIBPATH=/opt/IBM/db2/lib64:/home/perfpol2/sqllib/lib64:/usr/lib:/lib However, when I...
3
3178
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 symbol : class device location: class devtestdrive device d1=new tv(); ^ devtestdrive.java:5: cannot resolve symbol symbol : class...
0
7546
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...
0
7740
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. ...
1
7503
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...
0
7830
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...
0
6071
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...
0
3517
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...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
784
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...

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.