Results 1 to 3 of 3

Thread: [RESOLVED] [2008] Detect if a path is in a valid format

Threaded View

  1. #1

    Thread Starter
    Addicted Member AnthonyGrimes's Avatar
    Join Date
    Sep 2008
    Location
    United States
    Posts
    131

    Resolved [RESOLVED] [2008] Detect if a path is in a valid format

    Sorry if this is a simple question, but here it goes. I have a program that allows a user to either select a output filename or manually type the output filename. Is there any way to check if the path\filename are in the proper format? Since it may not exist yet, I am trying to check if it is a valid format (ie C:\Whatever\Whatever.abc) before I create the new file.

    Would I have to check each piece for existance? The drive letter (C:\), the folder (C:\Whatever) and that the filename has an extension, even if not valid.

    I was just wondering if there is anything easier.

    Thanks for any input.
    Last edited by AnthonyGrimes; Dec 2nd, 2008 at 01:00 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
  •  



Click Here to Expand Forum to Full Width