|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
can you guys help me with this problem,
1. search a file from C: drive keep searching until you find it. I think can use a timer 2. after find the file then search for a "word" in the file, also keep searching until you find it. if not there keep searching. 3. when find the word then close the program. please help me out guys. |
|
#2
|
|||
|
|||
|
use the dir function to browse the folders for the file
open the file with filesystem object or sth and a textstream. look for the word. repeat till found or finished |
|
#3
|
||||
|
||||
|
That approach will work, - but you won't need a timer, boston, just use a control-break (conditional) loop.
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > searching function in VB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|