Salve a tutti,
avendo una stringa del tipo c:\sito\foto\foto1.jpg è possibile separare il filename (foto1.jpg) dal suo path (c:\sito\foto\) e conservarli in due diverse stringhe?
Grazie,
Jotto
Salve a tutti,
avendo una stringa del tipo c:\sito\foto\foto1.jpg è possibile separare il filename (foto1.jpg) dal suo path (c:\sito\foto\) e conservarli in due diverse stringhe?
Grazie,
Jotto
codice:strPath = c:\sito\foto\foto1.jpg 'Nome del file strFilename = Right(strPath , Len(strPath ) - InstrRev(strPath , "/")) 'Path senza nome del file strNewPath = Left(strPath, Len(strPath) - Len(strFilename))
thanks 1K!