Learn how to a build a cloud-first strategyRegister Now


Reading CD pdf files using Visual Basic

Posted on 2006-04-26
Medium Priority
Last Modified: 2010-04-23

I have a program which converts a pdf to text file. I am looking for help in writing a program in VB which reads CD drive on the start of application and put's all the pdf file names in an array from the cd drive. The program should start looking the drive when the application is started by the user. Make an assumption D drive is CD drive.

Question by:sampuv123
1 Comment
LVL 86

Accepted Solution

Mike Tomlinson earned 1000 total points
ID: 16548344
Something like...

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim pdfs() As String = System.IO.Directory.GetFiles("d:\", "*.pdf")
        For Each pdf As String In pdfs
    End Sub

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Screencast - Getting to Know the Pipeline
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question