How to dipplay the contents of a drive using VB 6.0

  • Thread starter Thread starter Abhishek
  • Start date Start date
A

Abhishek

Hi there !
Can somebody help me understand how i can
display the contents of a drive ( for example E:\ drive).
I want to display all the contents of the CD-ROM by
clicking a button on a form. The action of clicking the
button should launch explorer to view all the contents of
the CD.

With thanks in advance...
Abhishek
 
Hello,

Abhishek said:
Can somebody help me understand how i can
display the contents of a drive ( for example E:\ drive).
I want to display all the contents of the CD-ROM by
clicking a button on a form. The action of clicking the
button should launch explorer to view all the contents of
the CD.

Notice that this is a VB.NET language group (no relation to VB6). You will
more likely get an answer in the VB Classic newsgroups
(microsoft.public.vb.*). Have a Google Search on 'ShellExecute'. This API
function can be used to open a folder in explorer.
 
Hi Abhishek, this is a VB.NET newsgroup. Please turn to a VB6.0 newsgroup,
such as microsoft.public.vb

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


: Hi there !
: Can somebody help me understand how i can
: display the contents of a drive ( for example E:\ drive).
: I want to display all the contents of the CD-ROM by
: clicking a button on a form. The action of clicking the
: button should launch explorer to view all the contents of
: the CD.
:
: With thanks in advance...
: Abhishek
:
:
 
Hi Abhishek,
Use Shell("Explorer.exe H:\") where H: is your cd drive letter.
Cheers,
Christian
 
In VB6, you shouldn't have brackets on Sub calls.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


: Hi Abhishek,
: Use Shell("Explorer.exe H:\") where H: is your cd drive letter.
: Cheers,
: Christian
:
: : > Hello,
: >
: > "One Handed Man [ OHM ]" <terry_burnsREMOVE%FOR%NO%[email protected]>
: > schrieb:
: > > System.Diagnostics.Process.Start("explorer.exe")
: >
: > How to use that in VB6?
: >
: > SCNR
: >
: > --
: > Herfried K. Wagner
: > MVP · VB Classic, VB.NET
: > http://www.mvps.org/dotnet
: >
: >
:
:
 
;-)

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


: Hello,
:
: > In VB6, you shouldn't have brackets on Sub calls.
:
: LOL -- I always wrote 'Call Shell(...)'.
:
: ;-)
:
: --
: Herfried K. Wagner
: MVP · VB Classic, VB.NET
: http://www.mvps.org/dotnet
:
:
 
Back
Top