function Explorer() local line=nil local seltxt=editor:GetSelText() if seltxt and seltxt ~= "" then line=seltxt; end if not line then line=editor:GetCurLine():mach("^%s*(.-)%s*$") end local head1=line:sub(1,2):gsub("\\","/") local head2=line:sub(2,3):gsub("\\","/") if head1=="//" or head2==":/" then local f=scite_Popen("start explorer " .. line:gsub("/","\\")) f:close() return end local FileDir = props['FileDir']:gsub('\\','/') .. '/' local path=(FileDir .. line):gsub('/','\\') local f=scite_Popen("start explorer " .. path) f: close() end