I need to remove the extension from a filename. Is there a quick and painless way to do this? With the File object? With the string object? <BR><BR>.cs <-- replaced with .dll or .exe
to do it,<BR><BR>filename="test.asp"<BR>response.write replace(filename,mid(filename,(Instr(1,filename,". ")+1),len(filename)),"aspx")<BR><BR>Output -- test.aspx<BR><BR><BR><BR>
Maybe you could go with instrrev() to get the first "." from the end of the string.