更新目录打开

This commit is contained in:
2025-03-18 17:05:43 +08:00
parent fa201dfc76
commit 254dc0b2cd
7 changed files with 38 additions and 20 deletions
+3 -3
View File
@@ -2729,14 +2729,14 @@ type TEditer=class(TCustomcontrol) //
p := it.ScriptPath;
if FileExists("",p)then
begin
for i := length(p)downto 3 do
{for i := length(p)downto 3 do
begin
if p[i]="\\" then
begin
p := p[1:i];
break;
end
end
end}
//_wapi.WinExec('cmd.exe /C start "" "'+p,1);
_wapi.openresourcemanager(p);
end
@@ -2975,7 +2975,7 @@ type TEditer=class(TCustomcontrol) //
fl := FileList("",n);
if not(length(fl)=1)then return false;
nn := fl[0,"FileName"];
if(POS("d",fl[0,"Attr"]))then return false;
if(POS("D",fl[0,"Attr"]))then return false;
it := new TPageEditerItem(FPageEditer);
oit := GetCurrentEditer();
if oit then