| Dir is used to search for files on a hard drive. To use it type: Variable = Dir (Search For & Where) To make it search for the next file type: Variable = Dir So for example to search for a file called: hello.txt, on the C drive type: Variable = Dir ("C:\hello.txt") Or to make it search for a file .txt extension on the end, on the C drive type: Variable = Dir ("C:\*.txt") And to make it display all the files results of the previous example in a Text Box type: Variable = Dir ("C:\*.txt") Do While Variable <> "" Text1.Text = Text1.Text & Variable & ", " Variable = Dir Loop |
Dir |
India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design