469,126 Members | 1,232 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,126 developers. It's quick & easy.

how to run vb script file via IIS 6.0 without prompting to open/save


I am redirecting from asp page to vbs file.The VBS script resides on same folder as of asp pages in my windows/IIS server.
I am using windows2003 and IIS 6.0.
Script is running properly but it is asking user to open/save the file.

My code for .asp page is :

<%@language="vbscript" %>

<% dim a

if a="" then

--------some code -------

end if

code for file.vbs file is:-

On Error Resume Next

Dim ForReading

Dim Filename,fil,fold

ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")

set fil=objFSO.GetFile("c:\temp.txt")

If objFSO.FileExists(Filename) Then

Set objTextFile = objFSO.OpenTextFile _
(Filename, ForReading)


'Delete the temporary file

'Call RDP

dim wshell
set wshell=CreateObject("WScript.Shell")
wshell.Run "C:\windows\system32\mstsc.exe /v:"& IP
set wshell=nothing
End If

It is first asking me to open or save the file.
If i click "open" then it asks to run or don't Run
But i want to hide these internal workings from the users.
How do i prevent these popup from occurring?

Can anyone help me in this issue?

Thanks in advance.

Jan 2 '08 #1
1 6155
4,871 Expert 4TB
I don't use asp, but what happens if you use wshell.Run "mstsc.exe"? You may be able to this using a windows form, but not sure in asp.
Jan 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by atse | last post: by
17 posts views Thread by Peter Duniho | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.