Home > Archive > Visual Basic > March 2006 > Find file in VB
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hallo everybody. I have a problem in VB6: i want to find a file, having as
output the normal visualization of WIN.
In VB I wrote:
Private Sub Command1_Click()
With Label1
..LinkTopic = "Folders|AppProperties"
..LinkMode = vbLinkManual
..LinkExecute "[OpenFindFile(,)]"
End With
End Sub
Where LABEL1 is a Label into a Form.
The problem is that, if you run this code, the Office Assistance appears,
ask for the file you want to seach, and the initial path or research.
How can I do to tell the Sub the correct parameters to search, for example,
the file XXX.txt in C.\WINDOWS?
Many thanks to everyone will help me!
Gł
| |
|
|
"Gł" <guidoautelli@alice.it> wrote in message
news:442adf3e$0$18284$4fafbaef@reader1.news.tin.it...
> Hallo everybody. I have a problem in VB6: i want to find a file, having as
> output the normal visualization of WIN.
I don't know what that means. What is the "normal visualization of WIN"?
> In VB I wrote:
>
> Private Sub Command1_Click()
> With Label1
> .LinkTopic = "Folders|AppProperties"
> .LinkMode = vbLinkManual
> .LinkExecute "[OpenFindFile(,)]"
> End With
> End Sub
>
> Where LABEL1 is a Label into a Form.
> The problem is that, if you run this code, the Office Assistance appears,
> ask for the file you want to seach, and the initial path or research.
> How can I do to tell the Sub the correct parameters to search, for
> example,
> the file XXX.txt in C.\WINDOWS?
> Many thanks to everyone will help me!
I've no idea why you would use DDE to find a file.
--
Mike
Microsoft MVP Visual Basic
| |
|
| I work in an office where people are abitued to use Windows. To searche a
file, they use STARS/FIND/FINDFILE, then they put the letters in the name of
the file, the path, and Windows gives the list of the found files.
I only need to reproduce this by VB...
The reason is that i'm writing a program in VB, to let other workers to
write into a form the name (or part of the name) in to a text box and have
automatically the list of the found file.
If you run the code in my last post, you can see it runs like
STARS/FIND/FIND FILE. Now i need to find the way to reproduce the sequence
(for the file *.txt, in C:\WINDOWS) ---> START/FIND/FINDFILE(*.txt,
C:\WINDOWS, other parameters like date, dimension, ecc...).
I hope I explained better...
Thanks!
Gł
|
|
|
|
|