Hello we have in vbscript some coding to grab file names from directories and put in a dynamic variable that change frequent. Now from that variable we want to put in another variable the extension only of what it was the file that now is a variable. For example we have a variable called "filenamecomplete", this is the variable where the vbscript store the name of the filename grabbed, and we want in the variable "resultingextension" store the extension of that variable that originally was a file name. Look these examples with some value examples of "filenamecomplete" and what we want to store in "resultingextension":
filenamecomplete (string var. value resultingextension (variable to store extension)
Like you see sometimes could be extensions longer than 3 and 4 characters and could be "." characters in different positions of the string "filenamecomplete".
Someone could help with an example vbscript code to reach this result?
The vbscript code is of course to use in a normal ".asp" file, we don't use ASP.NET, just simply ASP and to put the code in the middle of a normal call of vbscript in ASP files, in other words put the code in the middle of:
put code here
Thank you so much