-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: mrp
Message 4 in Discussion




 

hi all,

 

Dim dif As DirectoryInfo = New DirectoryInfo(strSourcePath)

i = dif.GetFileSystemInfos().Length() ' 
number of files and directories

Dim j As Integer = dif.GetFiles().Length()

k = dif.GetDirectories().Length() ' number 
of directories

thanks all

 

  ----- Original Message ----- 
  From: 
  BDOTNET 
  To: BDOTNET 
  Sent: Tuesday, March 09, 2004 1:02 
  PM
  Subject: Re: number of files in a 
  directory
  

  
    
      
      New Message on BDOTNET
    
      

  number of 
    files in a directory


    
      
      
        Reply

        
          
            
            
               
              Recommend 
              Message 3 in 
                Discussion 
      
        
          
            
            
              From: mrp 
            
              

                i want to be done 
                in vb.net,
                u r code seems to 
                be not working on vb.net
                says folder,FileSystemObject not defined
                i included 
                system.io,micrsoft.visualbasic
                 
                thanks in advance
                PrasantH
                
                   
                  ----- Original Message ----- 
                  From: spprivate 
                  
                  To: BDOTNET 
                  
                  Sent: Tuesday, March 09, 2004 12:53 PM
                  Subject: Re: number of files in a directory
                  

                  
                    
                    
                      
                      New Message on BDOTNET
                    
                      

                  number of files 
                    in a directory


                    
                      
                      
                        Reply

                        
                          
                            
                            
                               
                              Reply to Sender 
                                  Recommend 
                              Message 2 in 
                                Discussion 
                      
                        
                          
                            
                            
                              From: 
                                spprivate 
                            
                              

                                Hi,
                                U can use the filesystemobject of Scripting 
                                Class
                                 
                                
                                
Dim 
                                fs As New 
                                FileSystemObject
                                
Dim 
                                folder As 
                                Folder
                                
Dim 
                                count As Integer
                                
folder 
                                = fso.GetFolder("C:\test")
                                
count 
                                = folder.Files.Count
                                
MsgBox(count)
                                
 
                                
Cheers
                                
Satheesh
                                
 
View other groups in this category. 
                  


View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to