#6184

yorkane
Member

var fullFileName = ‘C:folder_1folder_2myfile.ext’;
var i = fullFileName.lastIndexOf(”) +1;
var path = fullFileName.substring(0,i);
alert(path);