Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return from subdirectory?
Message
De
13/03/1998 14:57:44
 
 
À
13/03/1998 14:55:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00084481
Message ID:
00084558
Vues:
46
>>>>>To check if the subdirectory "mysubdir" exists I use code
>>>>>
>>>>>on error do mkdir
>>>>>CD mysubdir
>>>>>cd ..
>>>>>on erro
>>>>>
>>>>>proc mkdir
>>>>>md mysubdir
>>>>>cd mysubdir
>>>>>endproc
>>>>>
>>>>>The program moves to the subdirectory OK, but it does not return to the parent directory when the command " cd .." is used.
>>>>>
>>>>>How to make "cd .." working ?
>>>>>TIA, AHWBGA
>>>>>
>>>>>Ed
>>>>
>>>>To 'return' to another folder, it's enough to say SET DEFAULT TO ...
>>>>BTW, you can use ADIR() to check subdirectories without changing default folder.
>>>
>>>ADIR() returns files names only.
>>>I tried "CHDIR .." instead of "CD.." - it works
>>>Thank You
>>>Ed
>>
>>Take a look at the third parameter of ADIR(). If it's "D" it's exactly what it is (i mean Fox abbreviation only:).
>
>Wouldn't DIRECTORY() be simpler for his situation?
>Bill

Yes! There are too many functions to remember...::)
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform