
Opening network shares from code?
The example code I posted is client side event handler code...
Sounds like you've got client and server side mixed up???
--
Michael Harris
Microsoft.MVP.Scripting
--
Quote:
> Thank you, but I am getting an error message when I use the code.
> The message reads:
> Microsoft VBScript runtime error "800a01a8"
> Object required: "window"
> Thanks for your help.
> Scott
> > sub UserButton_onclick()
> > '===
> > ' in a new window...
> > '
> > window.open "\\servername\sharename"
> > '===
> > ' in the current window...
> > '
> > ' window.navigate "\\servername\sharename"
> > end sub
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > My clients now go through network neighborhood to the browse list and open
> > the shares from our servers (let's say a user folder on PDC). They are
> > accustomed to seeing the new window with all of the userfolder popup in
> > front of them on their desktop. We are trying to recreate this through our
> > intranet site by having someone click on a "Users" button to have the same
> > result. I hope this clarifies. Sorry for being vague.
> > Scott
> > > Define "open it"...
> > > --
> > > Michael Harris
> > > Microsoft.MVP.Scripting
> > > --
> > > Hello,
> > > I was wondering if it was possible to use vbscript on a command button
> > > (within an asp page) to open only a shared resource folder over the
> > network.
> > > I don't need it to open a file, but rather a folder.
> > > Thanks,
> > > Scott