Opening network shares from code? 
Author Message
 Opening network shares from code?

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



Fri, 07 Feb 2003 03:00:00 GMT  
 Opening network shares from code?

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



Fri, 07 Feb 2003 03:00:00 GMT  
 Opening network shares from code?
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


Quote:

> Define "open it"...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --




Quote:
> 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



Sat, 08 Feb 2003 03:00:00 GMT  
 Opening network shares from code?

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


Quote:

> Define "open it"...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --




Quote:
> 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



Sat, 08 Feb 2003 03:00:00 GMT  
 Opening network shares from code?
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


Quote:

> 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
> --




- Show quoted text -

Quote:
> 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



Mon, 10 Feb 2003 03:00:00 GMT  
 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



Mon, 10 Feb 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Opening network shares from web interface

2. How can I check the availability of a network share through Visual Basic code

3. Create / Delete Network shares from code

4. Create / Delete Network shares from code

5. Connecting to network shares when network is detected only - help please

6. Back to VS.Net beta2, there was a code share plugin featured browsing code from Internet

7. GhostScript, HP 1220C, PressReady and network sharing to Macs without fine lines

8. Change network share

9. Using VB to copy a file from a network share to a client computer

10. fileSystemObject and Network shares

11. FileSystemObject and network shares

12. Network Connections / Shared Drives

 

 
Powered by phpBB® Forum Software