i have a pathname:
path = "c:\inetpub\wwwroot\mysite\testfile.txt"
how would i seperate this pathname into a variable containing only the filename?
i have been trying unsuccessfully for about an hour to accomplish this using the split() method.
here is my code...
var filename = path.split('\\');
the result is a string stored in only the first element of the array, and that string is:
anything element after filename is undefined.