Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement for =Adir and MkDir
Message
From
26/01/2000 14:52:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/01/2000 14:42:24
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00323053
Message ID:
00323059
Views:
29
>If 0=adir(aTdyDir,Left(tdy_bakpth,len(tdy_bakpth)-1),"D")
>``MkDir tdy_bakpth
>endif
>
>How do i replace this logically valid statement with one that works?
>
>I've tried enough permutations of this structure, and i know there is a simple script object replacement that works more reliably. Can you post the code to fix this immediately, and a reference to learn more about the script objects in general? (i'd rather any alternative than using Foxpro for the nitty-gritty specifics like this)


if !directory("SomeDir")
* adir() version
* If (adir(aTdyDir,Left(tdy_bakpth,len(tdy_bakpth)-1),"D") = 0)
 mkdir ("SomeDir")
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform