views:

34

answers:

2

Hi,

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$");
  }  
}  

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

+2  A: 

Like this:

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

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

Isaac Truett