473,473 Members | 4,189 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

AnuSumesh
96 New Member
Hi,

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

a=request.form("sometextbox")
if a="" then
%>
<html>
<body>

--------some code -------
</body>
</html>

<%
else
response.redirect("file.vbs")
end if
%>

code for file.vbs file is:-

On Error Resume Next

Dim ForReading

Dim Filename,fil,fold
Filename="C:\temp.txt"

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)

IP=objTextFile.ReadLine
objTextFile.close

'Delete the temporary file
fil.delete(true)

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

Anu
Jan 2 '08 #1
1 6333
kenobewan
4,871 Recognized Expert Specialist
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

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

Similar topics

7
by: atse | last post by:
Hi, I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages...
9
by: Jay Kim | last post by:
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected...
3
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws =...
7
by: mattmerc | last post by:
Hi all, We have all seen lot of method for exporting datagrids to Excel. I have a slightly different need. I think it should be easy to accomplish but I am not sure how. I would like when a user...
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
4
by: Jamey Shuemaker | last post by:
A2k2 with user-level security and all preventive measures, vis a vis, Security FAQ enabled or enacted. I've got three DBs, which due to size constraints can't, or rather, probably shouldn't be...
16
AnuSumesh
by: AnuSumesh | last post by:
Hi, I am ridirecting page to vbs file. File is running properly but it is asking user to open/save the file. But i want that it should run without any dialouge box. My code is : ...
0
by: balach | last post by:
hi dear, some body please guide me in this problem that,i am using the following "vbscript" to get the free space of "C" Drive in Megabytes. when i copy this code and save as "Diskspace.vbs" then...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.