开发者

HTML/JS open a window to the C$ drive

I need to have a link in my application that opens a remote C drive window to a certain machine.

For example, this works...

<a href='\\dev_pc101" />\C$'>Connect to C</a>

BUT... I need to do it from a piece of JS code. so I'd like to do something like this....

function raiseQueryDialogConfirmRemoteDrive(arg) {
  if (arg == 'button1')
  {
    window.open("\\dev_pc101\C$"开发者_Go百科);
  }  
}  

The above code though just tries to open a new window to..

http://localhost:8080/dev_pc101C$

And I just want a connection to \dev_pc101\C$

Any ideas?

Thanks Jeff Porter


Like this:

window.open("file://\\\\dev_pc101\\C$");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜