Fórum Abrir diretório no explorer do XP #224642
06/04/2004
0
CBier
Cbier
Curtir tópico
+ 0Posts
06/04/2004
Spooner
function ExecExplorer(OpenAtPath: string; OpenWithExplorer, OpenAsRoot: Boolean): boolean;
{Executa o Windows Explorer a partir de uma pasta
especificada
Requer a unit ShellApi
ex: execExplorer(´C:\Temp´, True,True);}
var
s: string;
begin
if OpenWithExplorer then
begin
if OpenAsRoot then
s := ´ /e,/root,"´ + OpenAtPath + ´"´
else
s := ´ /e,"´ + OpenAtPath + ´"´;
end
else
s := ´"´ + OpenAtPath + ´"´;
result := ShellExecute(Application.Handle,PChar(´open´),PChar(´explorer.exe´),PChar(s),nil,SW_NORMAL) > 32;
end;
end;Gostei + 0
07/04/2004
Cbier
CBier
Gostei + 0
07/04/2004
Spooner
Utilizo winXP e deu para Compilar belezinha, criei um exemplo se quiser baixar e testar no seu PC.
http://paginas.terra.com.br/informatica/megamilenium/TEMP.zip
Gostei + 0
07/04/2004
Spooner
Utilizo winXP e deu para Compilar belezinha, criei um exemplo se quiser baixar e testar no seu PC.
http://paginas.terra.com.br/informatica/megamilenium/TEMP.zip
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)