473,563 Members | 2,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to dipplay the contents of a drive using VB 6.0

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
Nov 20 '05 #1
8 2940
Hello,

"Abhishek" <ab************ @yahoo.com> schrieb:
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.publ ic.vb.*). Have a Google Search on 'ShellExecute'. This API
function can be used to open a folder in explorer.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Hi Abhishek, this is a VB.NET newsgroup. Please turn to a VB6.0 newsgroup,
such as microsoft.publi c.vb

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

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Abhishek" <ab************ @yahoo.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
: 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
:
:
Nov 20 '05 #3
System.Diagnost ics.Process.Sta rt("explorer.ex e")

"Abhishek" <ab************ @yahoo.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
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

Nov 20 '05 #4
Hello,

"One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m>
schrieb:
System.Diagnost ics.Process.Sta rt("explorer.ex e")


How to use that in VB6?

SCNR

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5
Hi Abhishek,
Use Shell("Explorer .exe H:\") where H: is your cd drive letter.
Cheers,
Christian

"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Hello,

"One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m>
schrieb:
System.Diagnost ics.Process.Sta rt("explorer.ex e")


How to use that in VB6?

SCNR

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #6
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'"
"Christian Blackburn" <Christian@Damn @Sp**@Hotmail.c om> wrote in message
news:uC******** ******@TK2MSFTN GP11.phx.gbl...
: Hi Abhishek,
: Use Shell("Explorer .exe H:\") where H: is your cd drive letter.
: Cheers,
: Christian
:
: "Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
: news:%2******** **********@TK2M SFTNGP12.phx.gb l...
: > Hello,
: >
: > "One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m>
: > schrieb:
: > > System.Diagnost ics.Process.Sta rt("explorer.ex e")
: >
: > How to use that in VB6?
: >
: > SCNR
: >
: > --
: > Herfried K. Wagner
: > MVP · VB Classic, VB.NET
: > http://www.mvps.org/dotnet
: >
: >
:
:
Nov 20 '05 #7
Hello,

"Tom Spink" <th**********@n tlworld.com> schrieb:
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
Nov 20 '05 #8
;-)

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

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:er******** ******@tk2msftn gp13.phx.gbl...
: Hello,
:
: "Tom Spink" <th**********@n tlworld.com> schrieb:
: > 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
:
:
Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3254
by: Ioannis Vranos | last post by:
Here is a similar code to one that I saw in a video on the web: #include <cstdio> #include <cstring> void somefunc(const char *input) { using namespace std;
5
2711
by: sifar | last post by:
Hi, This is my first post to this Group. A] I am trying to create a escalation page which will mail an escalation report of a faulty product. Items needed on Page: -----------------------
3
1027
by: Jason Moss | last post by:
How do I copy all the contents of a cd drive (All files and subfolders) to a folder? If possible, I'd like to implement a progress bar control to tell users how much the app has copied.
11
3757
by: jim shirreffs | last post by:
Hello, I am trying to put together a Java system for playing audio CDs on a large CD player, I have most of it working But entering all the data like Artist, Title, track name, track length (seconds) is a real pain in the butt. What I would like to do is write a java class that would extrack that info from an audio CD placed in the computers...
1
5739
by: ma740988 | last post by:
Trying to some of my reading on file manipulation (ifstream/ofstream/fstream) into action. So now consider. # include <iostream> # include <fstream> # include <cstring> # include <sstream> bool remove_and_create_if_exists( const std::string& filename
2
1440
by: David Trimboli | last post by:
I'm trying to figure out which makes the most semantic sense for a Table of Contents. Here is a sample of the ToC (each line is a link to a document): Windows Operating System Supported Versions Version Comparison Using Your Computer
2
962
by: rodchar | last post by:
hey all, how do you programatically get the filenames of a disc in a CD R/RW Rom Drive? thanks, rodchar
2
8174
by: Kavitha | last post by:
Hi , Can any one tel me how to create a virtual drive in C#( similar to Gmail Virtual drive).Also tell me what interfaces could be used to create the same. Thanks in Advance Kavitha
4
9127
by: Luc The Perverse | last post by:
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows Explorer - and I wondered if mounting a "virtual drive" would be feasable for me (someone not good at programming) to implement. -- LTP :)
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.