Re: Checking path validity

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jan (biteme_at_nospam.com)
Date: 01/02/05


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
> >
> >
>
>



Relevant Pages

  • Re: Checking path validity
    ... > No. I'm afraid that doesnt do what I want. ... > "CheckAbdoul" wrote in message ... See if you can use the PathIsFileSpecAPI. ...
    (microsoft.public.vc.mfc)
  • Re: Timer Procedures
    ... The Betfair API is a proprietary software program which comes bundled ... This doesnt make the calls to Betfair, ... I assume that it just dumps the data into excel rather than excel ... spreadhseet from the API it doesnt work properly. ...
    (microsoft.public.excel.programming)
  • Re: Save As from Access
    ... Thanks for the response- I was afraid that was the answer! ... link to this page in other responses, but I'm confused as to where to paste ... >> I'm trying to export a query to an Excel file, ... >> like to steer away from API calls if at all possible. ...
    (microsoft.public.access.formscoding)
  • Form_~TMPCLP94851 ??
    ... I am ok with starting over, However I cant delete it, it doesnt ... show in the Design View. ... I am afraid to leave ...
    (microsoft.public.access.formscoding)
  • Re: Graphisc failure
    ... I'm afraid it doesnt. ... Plugged in the proper USB keyboard and mouse. ... On powering it on it still comes up using the ...
    (comp.sys.hp.hpux)