VBNET2008 Validate File Extension


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: VBNET2008 Validate File Extension

  1. #1
    Join Date
    Jan 2005
    Location
    New Zealand
    Posts
    319

    VBNET2008 Validate File Extension

    Hullo Good Friends,
    I need your help. Please help me.
    I am using VBNET2008 to develop Window application and I encounter coding problem as I don't know how to write the coding to check the File Extension.
    Example of File name Sales.XLS. I want to check and confirm that the extension .xls exist

    Please share with me the coding to validate and check the extension.
    Thank You for your help
    Cheers,
    Lennie

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Split into its own thread
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    If you are trying to find out if a particular extension has a Registered application assigned to it, then you need to check the registry. The following link has a VB.Net routine that looks up the Registered Application for a particular extension.

    http://windevblog.blogspot.com/2008/...indows-xp.html

Similar Threads

  1. VBNET 2008 TabControl Pages
    By Lennie in forum .NET
    Replies: 2
    Last Post: 05-30-2010, 10:35 PM
  2. Replies: 1
    Last Post: 02-14-2006, 08:04 AM
  3. Replies: 2
    Last Post: 12-07-2001, 02:06 PM
  4. file extension .def in a file with ADO code
    By Sue in forum VB Classic
    Replies: 0
    Last Post: 11-14-2001, 11:33 PM
  5. How to use Java to lock a file
    By Cynthia Leslie in forum Java
    Replies: 3
    Last Post: 06-09-2001, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center