adsense


Showing posts with label ADVANCE VB SCRIPT FOLDERS. Show all posts
Showing posts with label ADVANCE VB SCRIPT FOLDERS. Show all posts

Thursday, 12 November 2015

ADVANCE VB SCRIPT FOLDERS PAGE 110

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




ADVANCE VB SCRIPT FOLDERS





Folders 



Folders is an collection of all Folder Objects within a Folder object. 
Methods 

• Add 

Properties 

• Count 

 

• Item 

Example 
If the above script is saved as HTML and executed in IE, 
we would create a folder with name "Test_Folder". 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
  
   Dim fso, f, fc, nf 
   Set fso = CreateObject("Scripting.FileSystemObject") 
   Set f = fso.GetFolder("D:\PROJECT") 
   Set fc = f.SubFolders 
   folderName = "Test_Folder" 
   If folderName <> "" Then 
      Set nf = fc.Add(folderName) 
   Else 
      Set nf = fc.Add("New Folder") 
   End If 
    
</script> 
</body> 
</html>