怎么用代码实现打开局域网中的指定共享文件夹
如何用代码实现打开局域网中的指定共享文件夹?
比如:一点按钮就打开192.168.1.2\\C:\文件件1
------解决方案--------------------
uses ShellAPI;
procedure TForm1.Button1Click(Sender: TObject);
begin
'如果目前登录本机的Windows帐号无权访问共享文件夹的话, 以下命令将失效
ShellExecute(Self.Handle, 'explore ', '\\192.168.1.2\C$\文件夹1 ', ' ', ' ', SW_SHOWNORMAL);
end;
比如:一点按钮就打开192.168.1.2\\C:\文件件1
------解决方案--------------------
uses ShellAPI;
procedure TForm1.Button1Click(Sender: TObject);
begin
'如果目前登录本机的Windows帐号无权访问共享文件夹的话, 以下命令将失效
ShellExecute(Self.Handle, 'explore ', '\\192.168.1.2\C$\文件夹1 ', ' ', ' ', SW_SHOWNORMAL);
end;