Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Parts of Filename
Message
From
05/03/1999 06:28:07
 
 
To
05/03/1999 01:03:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00191272
Message ID:
00194368
Views:
19
>Try
>
>myvar = getfile()
>
>right(myvar,len(myvar)-atc('.',myvar)) && displays the extension
>left(myvar,atc('.',myvar)-1) && displays the filename

The functions listed won't work reliably with long file names, which can contain more than one '.' (ie the completely legal file name my.file.name) or contain no '.' (ie myfilename)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform