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$");
精彩评论