Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2004, 08:53 AM
Authorized User
 
Join Date: Dec 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validating a filespec

I'm giving the user the ability to enter a file path (either by typing it or using a common dialog control). I want to validate that the file path the user chooses is a valid one. How would I go about doing this ?
 
Old October 27th, 2004, 10:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

2 choices...

use the filesystemobject to see is the path is valid...

use the dir function to see is a valid dir...

try the second one if you are very new to vb.. it have the complete doc. on the msdn.

HTH

Gonzalo





Similar Threads
Thread Thread Starter Forum Replies Last Post
validating xml m_rajib C# 0 May 5th, 2006 12:53 AM
bindingsource validating gpizzuto Visual Basic 2005 Basics 0 April 26th, 2006 05:27 PM
validating emails.... muskaanbajaj ASP.NET 1.0 and 1.1 Basics 3 October 13th, 2005 05:37 AM
Validating XML sunilyenpure XML 3 July 13th, 2004 12:11 AM
DeleteFile(filespec) with relative path? brandon1974 Classic ASP Basics 1 July 19th, 2003 04:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.