Re: Checking path validity
From: Jan (biteme_at_nospam.com)
Date: 01/02/05
- Next message: Rail Jon Rogut: "Re: Checking path validity"
- Previous message: CheckAbdoul: "Re: Checking path validity"
- In reply to: CheckAbdoul: "Re: Checking path validity"
- Next in thread: Rail Jon Rogut: "Re: Checking path validity"
- Reply: Rail Jon Rogut: "Re: Checking path validity"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 2 Jan 2005 19:35:30 -0000
Hi Check,
No. I'm afraid that doesnt do what I want. What I need is a function that
returns ok for:
c:myfile.exe
\\pc\yourfile.exe
and not ok for:
c::myfile.exe
\\\pc\yourfile.exe
c:\somedir\\somefile.exe
I wrote something 10 years ago but it works to the old DOS rules and is too
restrictive. I wanted to avoid rewriting the function for current O/Ss if
there is something in the API.
Thanks,
Jan
"CheckAbdoul" <checkabdoul at mvps dot org> wrote in message
news:OvPVgzP8EHA.1404@TK2MSFTNGP11.phx.gbl...
> See if you can use the PathIsFileSpec() API.
>
> --
> Cheers
> Check Abdoul [VC++ MVP]
> -----------------------------------
>
> "Jan" <biteme@nospam.com> wrote in message
> news:e8VmIrE8EHA.3828@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > What is the best way to check a pathname for validity, i.e. that it is
> > syntactically correct not whether the path exists.
> >
> > Thanks,
> >
> > Jan
> >
> >
>
>
- Next message: Rail Jon Rogut: "Re: Checking path validity"
- Previous message: CheckAbdoul: "Re: Checking path validity"
- In reply to: CheckAbdoul: "Re: Checking path validity"
- Next in thread: Rail Jon Rogut: "Re: Checking path validity"
- Reply: Rail Jon Rogut: "Re: Checking path validity"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|