Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: How to use Dir() in VBScript


Message #1 by "Nataraj S. Bhargav" <vb_world2000@y...> on Thu, 21 Mar 2002 13:31:14
I'm writing a file search method in vbscript. I'm not able to use Dir() 
method. It says type mismatch for Dir() method. If anyone knows how use 
the Dir() method in VBScript, let me know asap. It's very urgent.

Message #2 by "Hannu Turunen" <hannu.x.turunen@h...> on Thu, 21 Mar 2002 15:56:28 +0200
Try to use Function Dir([PathName], [Attributes As VbFileAttribute 
vbNormal]) As String
   Dim s
   s = Dir("C:\foldername", vbDirectory)

Hannu

-----Original Message-----
From: Nataraj S. Bhargav [mailto:vb_world2000@y...]
Sent: Thursday, March 21, 2002 1:31 PM
To: Access
Subject: [access] How to use Dir() in VBScript


I'm writing a file search method in vbscript. I'm not able to use Dir()
method. It says type mismatch for Dir() method. If anyone knows how use
the Dir() method in VBScript, let me know asap. It's very urgent.



  Return to Index