Jan 30, 2002 #1 GON Programmer Jan 3, 2002 4 NO Hi! I'm a newbie to VBscript and need some help... I know i can get the filetype by using file.type, but is there a similiar way to get just the file extension? Anyone? regards, GON
Hi! I'm a newbie to VBscript and need some help... I know i can get the filetype by using file.type, but is there a similiar way to get just the file extension? Anyone? regards, GON
Jan 30, 2002 #2 Meldric MIS Sep 5, 2001 139 US Here is a easy way: Code: strtest = "afile.txt" strextension = left(strtest,len(strtest) - 4) msgbox strextension Hope that works for you. Roger Upvote 0 Downvote
Here is a easy way: Code: strtest = "afile.txt" strextension = left(strtest,len(strtest) - 4) msgbox strextension Hope that works for you. Roger
Jan 30, 2002 #3 storm1976 Programmer Jul 6, 2001 31 GB hi just another way fo you to use :O) Dim MyString, MyArray, ext MyString = "afile.txt" MyArray = Split(MyString, "." ' MyArray(0) contains "afile" ' MyArray(1) contains "txt" ext = MyArray(1) response.write ext hope this is alrighty cheers storm Upvote 0 Downvote
hi just another way fo you to use :O) Dim MyString, MyArray, ext MyString = "afile.txt" MyArray = Split(MyString, "." ' MyArray(0) contains "afile" ' MyArray(1) contains "txt" ext = MyArray(1) response.write ext hope this is alrighty cheers storm