Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-12 #2 先执行 WinExec(Pchar('net use //computername password /user:username',sw_Hide); (或用CreateProcess执行,以便等到命令结束) 再执行ShellExecute(handle, nil,'//computer', nil, nil, SW_SHOWNORMAL);
先执行 WinExec(Pchar('net use //computername password /user:username',sw_Hide); (或用CreateProcess执行,以便等到命令结束) 再执行ShellExecute(handle, nil,'//computer', nil, nil, SW_SHOWNORMAL);