Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change directory name in VFP5.0a ?
Message
De
02/03/1998 09:57:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00082035
Message ID:
00082063
Vues:
24
>>Hi, all
>>
>>How to change directory name in VFP5.0a
>>
>>using a RUN command ?
>>
>>please help me
>
>You can use the Windows API call MoveFile to change the directory name. The declaration is as follows:
>
>
>DECLARE SHORT MoveFile IN Win32API;
>  STRING @lpcurrentname, STRING @lpnewname
>lcolddir = "C:\VFP\OLD"
>lcnewdir = "C:\VFP\NEW"
>= MoveFile(@lcolddir, @lcnewdir)
>
>
>The only potential problem would occur if you have a file without an extension that matched the subdirectory name.
>
>hth,

You could also use the "ren" command.
! ren olddir newdir
* If anyone of these is a long file name having spaces then use quotes
! ren "\My long filename directory name" "My other LFN dir"
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform