>Greetings -
>
>Let's say I want to copy files from within a Visual FoxPro application (6.0) to a destination that may or many not have the same directory structure as the source. For example:
>
>If the:
>
>SOURCE FILE TO COPY is R:\myAPP\DATA\COREDATA\MAINTABLES\ABC.DBF
>
>and I would like to create:
>
>S:\myAPP\DATA\COREDATA\MAINTABLES\ABC.DBF, but
It's simple:
if not dire("S:\myAPP\DATA\COREDATA\MAINTABLES")
md S:\myAPP\DATA\COREDATA\MAINTABLES
endif
Just tried it (in VFP7, but I think it works even in VFP5) and it created the full path even if none of the S:\myapp or below existed before.