Jump to content
Sign in to follow this  
yucatan

fileopendialog

Recommended Posts

yucatan

fileopendialog returns this C:\Documents and Settings\yucatan\Bureaublad\Geplakte_Gegevens_bc18.jpg

when i select a file i get that ofcourse..

the peoblem is i wanne get the only the file name so Geplakte_Gegevens_bc18.jpg

is there i way i can filter this? i was thinking on something like strintsplit \ or StringInStr bot both are not fully save

somebody any advise?

Share this post


Link to post
Share on other sites
Authenticity

$Arr = StringSplit($File, '\')

$FileName = $Arr[$Arr[0]-1]

Share this post


Link to post
Share on other sites
sandin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×