'This function is used to assign a value to array, and ArrayValue is the string value to be assigned, and splitmethod is the basis for splitting this string.
Function StoreArrayValue (ArrayValue, Splitmeth 4 StoreArrayValue = Split (ArrayValue, Splitmethod) End Function
'This function returns a drop-down list string, arrayname is the incoming array name, and SltName is the name of this drop-down list.
Function WriteSelect (ArrayName, Sltname) DIM SLT, I SLT = " & Arrayname (i) & " option>" Next SLT = SLT & " SLT>" WriteSelect = sltend function "This function returns all drives
Function ShowdriveList Dim Fso, D, DC, I, S set fso = createObject ("scripting.filesystemObject") SET DC = fso.drives i = 0 for Each D in DC S = S & D.Driveletter & "," i = i 1 Next s = MID (S, 1, LEN (S) -1) showdrivelist = send function
'This process outputs the capacity of the selected drive. ShoudriveInfo ("E: /") Sub ShowdriveInfo (DRVPATH) DIM FSO, DRV, S set fso = createObject ("scripting.filesystemObject") Set DRV = fso.getdrive (FSO. GetDriveName (DRVPATH)) S = "Drive" & Ucase (DRVPATH) & "-" S = S & DRV.VOLUMENAME & "S = S &" Total Space: "& FormatNumber (drv.totalsize) 1024 * 1024 * 1024), -1) S = S & "GB" & "" S = S & "Free Space:" & FormatNumber (DRV.FREESPACE / (1024 * 1024 * 1024), -1 ) S = S & "GB" & "" Response.write S end SUB
%> div> body> html>