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 12 4306
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??
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
%>
-----------------------------------------------------------------
"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
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.
> 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?
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?
> Right click, click properties, go to the security tab.
No such option in WinXP
> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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>
|
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...
| |
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?
|
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.*;
|
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...
|
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...
|
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...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |