Nom fichier

cs_bolo Messages postés 28 Date d'inscription mercredi 13 novembre 2002 Statut Membre Dernière intervention 30 juin 2007 - 26 nov. 2002 à 03:19
cs_Mcjo Messages postés 403 Date d'inscription dimanche 12 août 2001 Statut Membre Dernière intervention 3 septembre 2012 - 28 nov. 2002 à 03:57
salut
je cherche un script permettant d'afficher le nom d'un fichier sans son extension
bye
independza
french west idies

1 réponse

cs_Mcjo Messages postés 403 Date d'inscription dimanche 12 août 2001 Statut Membre Dernière intervention 3 septembre 2012 2
28 nov. 2002 à 03:57
ben
function nom_sans_ext(fichier)
Dim pos
nom_sans_ext = fichier
pos = InstrRev(fichier, ".")
if pos < 1 then
nom_sans_ext = left(nom_sans_ext, pos - 1)
end if

end function

response.write nom_sans_ext(lulu.txt)
'affiche lulu
0
Rejoignez-nous