Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get file extension of a file
Message
De
06/03/2009 10:31:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01386175
Message ID:
01386180
Vues:
65
>How do I get the file extension of a file. I am trying to determine if the file in my ADIR() has a .txt extension or not. If it doesn't I need to rename the file so it does have a .txt extension. The file that is being looked at is called KERNPRO.ACTION and it doesn't have a .txt extension. Sometimes the file maybe named SOMENAME.SOMENAMEAGAIN.TXT or just SOMENAME.SOMENAMEAGAIN without the extension.
>
>Thanks
>Nick
lcExt = Justext( m.lcFileName ) && get extension
lcNameWithExtension = forceext( m.lcFileName, "txt") && force txt extension
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