473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Executing a VBS file from an ASP page

Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??

Thanks
Pete (Northolt UK)

Mar 11 '08 #1
4 3054
p byers wrote:
Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??
Why not use a server-side include (SSI)?
That said, I was unaware that IIS6 stopped allowing this. What are your
symptoms when you attempt it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 11 '08 #2
Thanks for your reply.

The reason I have not used SSI is because I have to VBS files that
loop continuously all the time the server is "UP"
They are in the list of StartUp files to be Executed.
We found that ASP would not start them several years ago - so we got
used to - using Remote Desktop login to start them when the failed (or
failed to start at a 're-boot')
Recently we have changed our Server - we are running them side by side
at the momement.


I tried the old ASP file on the old server to find the Error Message -
suprise, surprise !! it worked perfectly (why it does now, I dont know -
we tried for hours and hours several years ago but eventually gave up)


I tried it on the new server - it gave the following Error

__________________________________________________ ___________
Microsoft VBScript runtime error '800a0046'

Permission denied

__________________________________________________ ___________
Now I know it is a "permissions" problem, I will go through comparing
the security settings on old and new servers.
Hopefully, I will crack it !!!

Thank you

Pete (Northolt UK)

"Bob Barrows [MVP]" wrote:
p byers wrote:
Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??
Why not use a server-side include (SSI)?
That said, I was unaware that IIS6 stopped allowing this. What are your
symptoms when you attempt it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 11 '08 #3
Why not use AT to schedule the file to be run by the operating system?
Does it need to run within the IIS context?
See http://www.aspfaq.com/show.asp?id=2143
p byers wrote:
Thanks for your reply.

The reason I have not used SSI is because I have to VBS files that
loop continuously all the time the server is "UP"
They are in the list of StartUp files to be Executed.
We found that ASP would not start them several years ago - so we got
used to - using Remote Desktop login to start them when the failed (or
failed to start at a 're-boot')
Recently we have changed our Server - we are running them side by side
at the momement.


I tried the old ASP file on the old server to find the Error Message -
suprise, surprise !! it worked perfectly (why it does now, I dont
know - we tried for hours and hours several years ago but eventually
gave up)


I tried it on the new server - it gave the following Error

__________________________________________________ ___________
Microsoft VBScript runtime error '800a0046'

Permission denied

__________________________________________________ ___________
Now I know it is a "permissions" problem, I will go through comparing
the security settings on old and new servers.
Hopefully, I will crack it !!!

Thank you

Pete (Northolt UK)

"Bob Barrows [MVP]" wrote:
>p byers wrote:
>>Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??
Why not use a server-side include (SSI)?
That said, I was unaware that IIS6 stopped allowing this. What are
your symptoms when you attempt it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 11 '08 #4
Thanks Bob
The 'AT' suggestion could achieve what I need to.

It does not need to run in IIS context

Pete(Northolt UK)

"Bob Barrows [MVP]" wrote:
Why not use AT to schedule the file to be run by the operating system?
Does it need to run within the IIS context?
See http://www.aspfaq.com/show.asp?id=2143
p byers wrote:
Thanks for your reply.

The reason I have not used SSI is because I have to VBS files that
loop continuously all the time the server is "UP"
They are in the list of StartUp files to be Executed.
We found that ASP would not start them several years ago - so we got
used to - using Remote Desktop login to start them when the failed (or
failed to start at a 're-boot')
Recently we have changed our Server - we are running them side by side
at the momement.


I tried the old ASP file on the old server to find the Error Message -
suprise, surprise !! it worked perfectly (why it does now, I dont
know - we tried for hours and hours several years ago but eventually
gave up)


I tried it on the new server - it gave the following Error

__________________________________________________ ___________
Microsoft VBScript runtime error '800a0046'

Permission denied

__________________________________________________ ___________
Now I know it is a "permissions" problem, I will go through comparing
the security settings on old and new servers.
Hopefully, I will crack it !!!

Thank you

Pete (Northolt UK)

"Bob Barrows [MVP]" wrote:
p byers wrote:
Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??

Why not use a server-side include (SSI)?
That said, I was unaware that IIS6 stopped allowing this. What are
your symptoms when you attempt it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 12 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with Server.Execute? Specifically for me it simply is not executing ... the server does not transfer to the page specified. The calling ASP just...
7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
7
by: Jibey | last post by:
Hello: I'm facing a very strange problem. When I run my Web application in Visual Studio.NET the Page_Load event is not executing. Other events like a Button_Click are executing. It doesn't...
2
by: Pratibha | last post by:
Hi, I want to execute commands through .NET. Using process, i can execute them in WindowsApplication but the process doesn't work in WebApplication. I am executing a batch file which contains...
1
by: EagleRed | last post by:
I am developing an ASP.NET 2.0 application using a master page. I have a DataList control on the master page that has a datasource this is an ArrayList of objects that have a CmdURL property. ...
11
by: simon | last post by:
Hello, I'm helping write a .net app, we are using VS2005 and asp/vb.net for code we are using the "masterPage.master" technique, within the masterpage we have an asp:contentplaceholder that is...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
2
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
I am executing an AJAX page method that is a long running task. After starting the first method, I execute a second page method to retrieve the status of the task. It works fine in an empty web...
2
by: rico.fabrini | last post by:
Hello Everyone, I've suddenly started running into the error "error executing child request for Page.aspx" when doing a Server.Transfer("Page.aspx"); That's on a Win2003 Server machine. ...
0
Frinavale
by: Frinavale | last post by:
I have a peculiar problem... Background: I have a function that I don't want the user to execute more than once while they are waiting for it to process; therefore, I disable all of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.