Hi Mockey who wrote:
> validpath("D:") returns 1
> file.isfolder("D:") returns 1
> file.validpath("D:") returns 0

I had a bright (???) idea:

In DOS at least and maybe also in Windows,
"D:" does not necessarily mean the same as "D:\".

"D:\" is the root of D: of course
but "D:" is the current folder on D: which is probably
not the root of D:
To some programs and/or the OS it might evaluate to what you
specified as the "Start in ..." folder in the .lnk shortcut
which started the currently active program, or if you started
that app from PowerPro, it would be what you had in the
"Initial folder" field.

but my bright idea turned out to be useless when tested here :-(
The extra \ (to emphasize that I definitely mean the root) made no difference.

win.debug(validpath("K:")) ;; returns 1
win.debug(file.isfolder("K:")) ;; returns 1
win.debug(file.validpath("K:")) ;; returns 0
win.debug(validpath("K:\")) ;; returns 1
win.debug(file.isfolder("K:\")) ;; returns 1
win.debug(file.validpath("K:\")) ;; returns 0

(K: is a real partition here)

However
win.debug(file.validpath("K:\temp")) ;; returns 1

So it looks like "file.validpath()" does not consider
the root of D: to be a valid path, but "validpath()" does.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to