Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2007, 12:34 PM
justsaynik justsaynik is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
justsaynik is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Post Problem opening up Windows explorer from a web page with vbscript

Hi,

I am not good at VBScript. I am able to launch word application(from a web page on button click) on client machine using the below script

<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call OpenDoc("http://MyServer/MyTest.doc")
End Sub

Sub OpenDoc(strLocation)
Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub
</SCRIPT>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">

But i am unable to launch the windows explorer in the client machine using the below code..... permission denied error is being dispalyed.

<SCRIPT LANGUAGE=VBScript>
Sub Btn1_onclick()
Set objShell = CreateObject("Shell.Application")
objShell.Explore "ftp://username : passwd@host/"
End Sub
</SCRIPT>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Explorer">

Please help... Thanks in advance
Reply With Quote

This ad is part of our Revenue Sharing program
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 3265 VBscript editor Data Access Page 8cats ASP & VBScript Forum 8 10-17-2007 04:10 PM
Opening an Application! MTBER ASP & VBScript Forum 5 07-11-2007 06:51 PM
Opening IE MTBER ASP & VBScript Forum 1 07-09-2007 02:54 PM
Internet Explorer Vs Firefox LOLA Show it off & Services 1 06-25-2007 04:07 PM
windows trouble. detoam Webmasters Lounge/General Chat 4 02-24-2007 07:53 AM


All times are GMT. The time now is 04:01 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30