All nodes in the piece, there is a delete and edit two connections next to each node, where the code to delete is:Id=request ("id")If IsNumeric (ID) =false or isNull (ID) ThenResponse.Write ("parameter is not correct, please return!")
FSO file (file) object propertiesDateCreated returns the date and time the folder was createdDatelastaccessed returns the date and time the file was last accessedDateLastModified returns the date and time the file was last modifiedDrive returns the
ASP FSO Tutorial: ASP Delete method
Deletes the specified file or folder by deleting the method.Grammar
fileobject.delete[(Force)]
folderobject.delete[(Force)]
Parameter
Description
Force
Welcome Nofeehost
We offer top-class web hosting services for free. We combine the most advanced Windows host features to give you complete flexibility and reliability for your site. The following is a brief, we provide the function
Free
Learning type 50M ASP space:50M ASP space, a free trial for one year, the application isStable, no advertising windowPowerful admin panelAllow a top-level domain name to be bundled, giving a two-level domain name24x7 FTP Access Management (FTP
This class machine uses the high configuration Cluster server, greatly enhances the performanceHas the management control Panel, can carry on the FTP password and so on many items real-time change.Supports JavaScript and/vbsript client
In the following example, we create an instance of a FileSystemObject object and then instantiate the file object using the GetFile method. After that, we use the file object properties to get information about the specified file:
Dim objFSO,
Whichfolder=server.mappath ("") & "/"Dim FS, F, F1, FCSet fs = CreateObject ("Scripting.FileSystemObject")Set f = fs. GetFolder (Whichfolder)Set FC = F.files
For each F1 in FCResponse.Write (F1.name & "")Next%>
Instance
The code is as follows
Copy Code
Dim Rs,sql,foundstrDim Classid,childstrDim Rssbody,rsstitle,rsshomepageurlDim Xmldom,node,cnode,cnode1,msginfoSet xmldom = Server.CreateObject ("Microsoft.FreeThreadedXMLDOM")Xmldom.appendchild
Sendurl= "Http://schemas.microsoft.com/cdo/configuration/sendusing"Smtpurl= "Http://schemas.microsoft.com/cdo/configuration/smtpserver"
' Set the ' mail server configurationSet objconfig=createobject ("CDO.") Configuration ")ObjConfig.Fields.Item
Add new nodes to XML Addok=request ("Addok")If addok= "" Or IsNull (Addok) Then%>Website name: " URL: " End IfIf addok= "Add" thenSite=request ("Site")Url=request ("url")strSourceFile = Server.MapPath ("./") & "\test.xml"' Get the path to the XML
1. Symptom description:Run the asp file locally. The IE prompt is:Server Application ErrorThe server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail
15. ErrorValueEnum constantThe name, value, and description of the ErrorValueEnum constant are shown in the table F-15.Table F-15ErrorValueEnum constant name, value, and descriptionName value descriptionAdErrBoundToCommand3707 because the Command
35. RecordCreateOptionsEnum constantThe name, value, and description of the RecordCreateOptionsEnum constant are shown in the table F-35.Table F-35RecordCreateOptionsEnum constant name, value, and descriptionName value descriptionAdCreateCollectio819
54 powermanNote:If you need the string value of the file form, use GetFullName ("file ")If you need a file Form file name, use GetFileName ("file ")If you need the file Form Extension, use GetExtName ("file ")If you need the value of a common text
IsArray functionReturns a Boolean value to indicate whether a variable is an array.SyntaxIsArray (varname)The varname parameter can be any variable.DescriptionIf the variable is an array, the IsArray function returns True; otherwise, the function
Most people are worried about database security issues! Generally, the database suffix is complicated and the suffix is. ASP. But is it absolutely safe! The answer is yes. It will never be safe! Because once someone guesses your path, you can use
The "processing instruction" of ASP provides the information required for ASP to process the. asp file. For example, the following command sets VBScript as the main script language of the page:The processing command must be in the first line of the.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service