Como usar os comandos NET USE dos dos no delphi

Delphi

25/07/2006

como executar estes comandos via codigo do delphi:

net use f: \\servidor\sistema /yes
net time \\servidor /set /yes


Fábio Galvão

Fábio Galvão

Curtidas 0

Respostas

Martins

Martins

25/07/2006

[quote:22ed1fef7d=´Fábio Galvão´]como executar estes comandos via codigo do delphi:

net use f: \\servidor\sistema /yes
net time \\servidor /set /yes[/quote:22ed1fef7d]

vc pode usar

[b:22ed1fef7d]Winexec [/b:22ed1fef7d]ou [b:22ed1fef7d]ShellExecute[/b:22ed1fef7d]

boa sorte!


GOSTEI 0
Aloizio Castro

Aloizio Castro

25/07/2006

  WinExec(´cmd.exe /c net use I: \\servidor\pub /yes´,SW_NORMAL);
  WinExec(´cmd.exe /c net time \\servidor\pub /set /yes´,sw_hide);


Abraços


GOSTEI 0
POSTAR