Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files into a non-exsting folder
Message
 
To
24/10/2006 13:14:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164128
Message ID:
01164129
Views:
16
>The COPY FILE command does not seem to work if the destination folder deos not exist. For example if I use the command
>
> COPY FILE 'C:\X\Y\A.*' TO 'A:\X\Y\A.*'
>
>if either the folder "X" or the sub-folder "Y" do not exist. What is the best way of check that the destination folders exist and to create them if the do not?
>
>TIA
TRY
  MD A:\X\Y
CATCH
    *** folder exists or access is denied
ENDTRY
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform