WSH
function this_folder_path() { // Note: getFolder("."), shell.currentDirectory, // incredible if Arguments passed var nameThis = WScript.ScriptFullName; var namePath = nameThis.replace(/\\[^\\]+$/i, ""); return namePath; }
function this_folder_path() { // Note: getFolder("."), shell.currentDirectory, // incredible if Arguments passed var nameThis = WScript.ScriptFullName; var namePath = nameThis.replace(/\\[^\\]+$/i, ""); return namePath; }