Hi all,
I have created an ASP script that enters data into an Access Database.
My problem is that I'd like this script to run when the computer is shutdown
or the user logs off.
I think this would be simple enough if the ASP didn't have any user input,
but it does.
How can I do it that the logoff/shutdown only continues after the ASP form
has been submitted?
Any other suggestions on getting around the problem if it isn't possible to
do it using the above method would also be appreciated.
Thanks
JH 8 2747
I don't really think this is feasible. For other thing, the system will be
capable of terminating the process that is running the script (eg
WScript.exe or InetInfo.exe) if the user doesn't enter anything (sometimes
you see the "program xyz is has not responded in a timely manner. Do you
want to terminate the program?" type prompts).
I assume that Windows itself provides APIs that you can hook into for doing
these things. You'd need to write an application or a service though.
Can you tell us what you are thinking of doing? Perhaps there is a different
way?
Cheers
Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
news:_SN4c.1$K4.0@newsfe1-win...
: Hi all,
:
: I have created an ASP script that enters data into an Access Database.
:
: My problem is that I'd like this script to run when the computer is
shutdown
: or the user logs off.
:
: I think this would be simple enough if the ASP didn't have any user input,
: but it does.
:
: How can I do it that the logoff/shutdown only continues after the ASP form
: has been submitted?
:
: Any other suggestions on getting around the problem if it isn't possible
to
: do it using the above method would also be appreciated.
:
: Thanks
:
: JH
:
:
:
I am trying to do our own server log. We have around 20 servers. When one
of our techs does something on a server I want them to be forced to fill in
a form saying what they have done on the server. By doing it on logoff or
shutdown it forces them into doing it so the log will be a true reflection
of what is happening. We need this information for various reasons.
I thought the best way to do it would be an ASP popup into an access
database on shutdown/logoff. Bearing in mind that my skills are web
programming as opposed to other programming.
Thanks
JH I don't really think this is feasible. For other thing, the system will be capable of terminating the process that is running the script (eg WScript.exe or InetInfo.exe) if the user doesn't enter anything (sometimes you see the "program xyz is has not responded in a timely manner. Do you want to terminate the program?" type prompts).
I assume that Windows itself provides APIs that you can hook into for
doing these things. You'd need to write an application or a service though.
Can you tell us what you are thinking of doing? Perhaps there is a
different way?
Cheers Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message news:_SN4c.1$K4.0@newsfe1-win... : Hi all, : : I have created an ASP script that enters data into an Access Database. : : My problem is that I'd like this script to run when the computer is shutdown : or the user logs off. : : I think this would be simple enough if the ASP didn't have any user
input, : but it does. : : How can I do it that the logoff/shutdown only continues after the ASP
form : has been submitted? : : Any other suggestions on getting around the problem if it isn't possible to : do it using the above method would also be appreciated. : : Thanks : : JH : : :
Hi,
If you're techs are admins on the server, there's no way, technically, of
forcing them to anything, since they are administrators, and they can
disable anything that you configure :-)
Additionally, an ASP page needs to be delivered via some kind of server
resource, and is presented in a browser (which runs in user-mode, and has no
particularly special attributes). The user can just close the browser
without filling in anything. Likewise, if the server is shutting down or the
user logging off, the browser will be automatically closed down as part
process (the only apps that aren't automatically closed down are those with
a dialogue box awaiting a user response, eg Word asking a user if they want
to save a document before closing).
Windows 2003 Server, and Windows XP Pro have a shut-down tracker that you
can configure for this purpose (details are logged to the Windows Event
log). Otherwise, I think you need to find a third party product, or start
researching how to write a service that can hook into whatever events
Windows generates when it's shutting down/logging off.
Cheers
Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
news:NR*****************@newsfe5-gui.server.ntli.net...
: I am trying to do our own server log. We have around 20 servers. When
one
: of our techs does something on a server I want them to be forced to fill
in
: a form saying what they have done on the server. By doing it on logoff or
: shutdown it forces them into doing it so the log will be a true
reflection
: of what is happening. We need this information for various reasons.
:
: I thought the best way to do it would be an ASP popup into an access
: database on shutdown/logoff. Bearing in mind that my skills are web
: programming as opposed to other programming.
:
: Thanks
: JH
:
:
: > I don't really think this is feasible. For other thing, the system will
be
: > capable of terminating the process that is running the script (eg
: > WScript.exe or InetInfo.exe) if the user doesn't enter anything
(sometimes
: > you see the "program xyz is has not responded in a timely manner. Do you
: > want to terminate the program?" type prompts).
: >
: > I assume that Windows itself provides APIs that you can hook into for
: doing
: > these things. You'd need to write an application or a service though.
: >
: > Can you tell us what you are thinking of doing? Perhaps there is a
: different
: > way?
: >
: > Cheers
: > Ken
: >
: >
: > "Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
: > news:_SN4c.1$K4.0@newsfe1-win...
: > : Hi all,
: > :
: > : I have created an ASP script that enters data into an Access Database.
: > :
: > : My problem is that I'd like this script to run when the computer is
: > shutdown
: > : or the user logs off.
: > :
: > : I think this would be simple enough if the ASP didn't have any user
: input,
: > : but it does.
: > :
: > : How can I do it that the logoff/shutdown only continues after the ASP
: form
: > : has been submitted?
: > :
: > : Any other suggestions on getting around the problem if it isn't
possible
: > to
: > : do it using the above method would also be appreciated.
: > :
: > : Thanks
: > :
: > : JH
: > :
: > :
: > :
: >
: >
:
:
Thanks for your reply
This is something senior management have requested, I don't think them
disabling it would be a good career move :-)
What I meant really was by putting it in their face on logoff/shutdown
they'll always have to fill it in...it eradicates them forgetting to fill it
in. I could have a link on the desktop, but they might well forget to run
it before logoff/shutdown.
Another idea would be to run a windows popup box (not asp) asking them if
they're sure they want to shutdown/logoff, but rewording it. So "Have you
filled in the server log" Yes/No. With Yes continuing shutdown/logoff and
No taking them back into Windows.
Would this be easy to do?
Cheers
JH
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uO**************@tk2msftngp13.phx.gbl... Hi,
If you're techs are admins on the server, there's no way, technically, of forcing them to anything, since they are administrators, and they can disable anything that you configure :-)
Additionally, an ASP page needs to be delivered via some kind of server resource, and is presented in a browser (which runs in user-mode, and has
no particularly special attributes). The user can just close the browser without filling in anything. Likewise, if the server is shutting down or
the user logging off, the browser will be automatically closed down as part process (the only apps that aren't automatically closed down are those
with a dialogue box awaiting a user response, eg Word asking a user if they
want to save a document before closing).
Windows 2003 Server, and Windows XP Pro have a shut-down tracker that you can configure for this purpose (details are logged to the Windows Event log). Otherwise, I think you need to find a third party product, or start researching how to write a service that can hook into whatever events Windows generates when it's shutting down/logging off.
Cheers Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message news:NR*****************@newsfe5-gui.server.ntli.net... : I am trying to do our own server log. We have around 20 servers. When one : of our techs does something on a server I want them to be forced to fill in : a form saying what they have done on the server. By doing it on logoff
or : shutdown it forces them into doing it so the log will be a true reflection : of what is happening. We need this information for various reasons. : : I thought the best way to do it would be an ASP popup into an access : database on shutdown/logoff. Bearing in mind that my skills are web : programming as opposed to other programming. : : Thanks : JH : : : > I don't really think this is feasible. For other thing, the system
will be : > capable of terminating the process that is running the script (eg : > WScript.exe or InetInfo.exe) if the user doesn't enter anything (sometimes : > you see the "program xyz is has not responded in a timely manner. Do
you : > want to terminate the program?" type prompts). : > : > I assume that Windows itself provides APIs that you can hook into for : doing : > these things. You'd need to write an application or a service though. : > : > Can you tell us what you are thinking of doing? Perhaps there is a : different : > way? : > : > Cheers : > Ken : > : > : > "Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message : > news:_SN4c.1$K4.0@newsfe1-win... : > : Hi all, : > : : > : I have created an ASP script that enters data into an Access
Database. : > : : > : My problem is that I'd like this script to run when the computer is : > shutdown : > : or the user logs off. : > : : > : I think this would be simple enough if the ASP didn't have any user : input, : > : but it does. : > : : > : How can I do it that the logoff/shutdown only continues after the
ASP : form : > : has been submitted? : > : : > : Any other suggestions on getting around the problem if it isn't possible : > to : > : do it using the above method would also be appreciated. : > : : > : Thanks : > : : > : JH : > : : > : : > : : > : > : :
Could you use something like AutoIT from www.hiddensoft.com to automate the
responses to the application? I use AutoIT for several tasks during shutdown...
On Sun, 14 Mar 2004 13:57:23 +1100, "Ken Schaefer"
<ke*******@THISadOpenStatic.com> wrote: I don't really think this is feasible. For other thing, the system will be capable of terminating the process that is running the script (eg WScript.exe or InetInfo.exe) if the user doesn't enter anything (sometimes you see the "program xyz is has not responded in a timely manner. Do you want to terminate the program?" type prompts).
I assume that Windows itself provides APIs that you can hook into for doing these things. You'd need to write an application or a service though.
Can you tell us what you are thinking of doing? Perhaps there is a different way?
Cheers Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message news:_SN4c.1$K4.0@newsfe1-win... : Hi all, : : I have created an ASP script that enters data into an Access Database. : : My problem is that I'd like this script to run when the computer is shutdown : or the user logs off. : : I think this would be simple enough if the ASP didn't have any user input, : but it does. : : How can I do it that the logoff/shutdown only continues after the ASP form : has been submitted? : : Any other suggestions on getting around the problem if it isn't possible to : do it using the above method would also be appreciated. : : Thanks : : JH : : :
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
news:diZ4c.676$nN6.281@newsfe1-win... Thanks for your reply
This is something senior management have requested, I don't think them disabling it would be a good career move :-)
What I meant really was by putting it in their face on logoff/shutdown they'll always have to fill it in...it eradicates them forgetting to
fill it in. I could have a link on the desktop, but they might well forget to
run it before logoff/shutdown.
Another idea would be to run a windows popup box (not asp) asking them
if they're sure they want to shutdown/logoff, but rewording it. So "Have
you filled in the server log" Yes/No. With Yes continuing shutdown/logoff
and No taking them back into Windows.
Would this be easy to do?
How about doing it at startup? I.e. "Why did you just shutdown the
system?"
> How about doing it at startup? I.e. "Why did you just shutdown the system?"
Not possible unfortunately. Our techs logon to the servers using remote
desktop. Theres no guarantee that when they reboot that they'll log back
onto the server afterwards. Also you could be presented with that question
when you've not even done anything.
Cheers
JH
If you want something to be able to cancel the shutdown, you really need to
ask in one of the programming groups, to find out what APIs/events your
application needs to hook into. Otherwise the Windows shutdown process is
simply going to kill any process that's running (including, say, Windows
Script Host, which would be hosting the dialogue box).
Otherwise, start googling for 3rd party products. (or if the server is
Windows 2003, turn on the Shutdown tracker).
Cheers
Ken
"Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
news:diZ4c.676$nN6.281@newsfe1-win...
: Thanks for your reply
:
: This is something senior management have requested, I don't think them
: disabling it would be a good career move :-)
:
: What I meant really was by putting it in their face on logoff/shutdown
: they'll always have to fill it in...it eradicates them forgetting to fill
it
: in. I could have a link on the desktop, but they might well forget to run
: it before logoff/shutdown.
:
: Another idea would be to run a windows popup box (not asp) asking them if
: they're sure they want to shutdown/logoff, but rewording it. So "Have you
: filled in the server log" Yes/No. With Yes continuing shutdown/logoff and
: No taking them back into Windows.
:
: Would this be easy to do?
:
: Cheers
: JH
:
:
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:uO**************@tk2msftngp13.phx.gbl...
: > Hi,
: >
: > If you're techs are admins on the server, there's no way, technically,
of
: > forcing them to anything, since they are administrators, and they can
: > disable anything that you configure :-)
: >
: > Additionally, an ASP page needs to be delivered via some kind of server
: > resource, and is presented in a browser (which runs in user-mode, and
has
: no
: > particularly special attributes). The user can just close the browser
: > without filling in anything. Likewise, if the server is shutting down or
: the
: > user logging off, the browser will be automatically closed down as part
: > process (the only apps that aren't automatically closed down are those
: with
: > a dialogue box awaiting a user response, eg Word asking a user if they
: want
: > to save a document before closing).
: >
: > Windows 2003 Server, and Windows XP Pro have a shut-down tracker that
you
: > can configure for this purpose (details are logged to the Windows Event
: > log). Otherwise, I think you need to find a third party product, or
start
: > researching how to write a service that can hook into whatever events
: > Windows generates when it's shutting down/logging off.
: >
: > Cheers
: > Ken
: >
: > "Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
: > news:NR*****************@newsfe5-gui.server.ntli.net...
: > : I am trying to do our own server log. We have around 20 servers.
When
: > one
: > : of our techs does something on a server I want them to be forced to
fill
: > in
: > : a form saying what they have done on the server. By doing it on
logoff
: or
: > : shutdown it forces them into doing it so the log will be a true
: > reflection
: > : of what is happening. We need this information for various reasons.
: > :
: > : I thought the best way to do it would be an ASP popup into an access
: > : database on shutdown/logoff. Bearing in mind that my skills are web
: > : programming as opposed to other programming.
: > :
: > : Thanks
: > : JH
: > :
: > :
: > : > I don't really think this is feasible. For other thing, the system
: will
: > be
: > : > capable of terminating the process that is running the script (eg
: > : > WScript.exe or InetInfo.exe) if the user doesn't enter anything
: > (sometimes
: > : > you see the "program xyz is has not responded in a timely manner. Do
: you
: > : > want to terminate the program?" type prompts).
: > : >
: > : > I assume that Windows itself provides APIs that you can hook into
for
: > : doing
: > : > these things. You'd need to write an application or a service
though.
: > : >
: > : > Can you tell us what you are thinking of doing? Perhaps there is a
: > : different
: > : > way?
: > : >
: > : > Cheers
: > : > Ken
: > : >
: > : >
: > : > "Jonathan Heath" <Jo*@nospam.thecityground.co.uk> wrote in message
: > : > news:_SN4c.1$K4.0@newsfe1-win...
: > : > : Hi all,
: > : > :
: > : > : I have created an ASP script that enters data into an Access
: Database.
: > : > :
: > : > : My problem is that I'd like this script to run when the computer
is
: > : > shutdown
: > : > : or the user logs off.
: > : > :
: > : > : I think this would be simple enough if the ASP didn't have any
user
: > : input,
: > : > : but it does.
: > : > :
: > : > : How can I do it that the logoff/shutdown only continues after the
: ASP
: > : form
: > : > : has been submitted?
: > : > :
: > : > : Any other suggestions on getting around the problem if it isn't
: > possible
: > : > to
: > : > : do it using the above method would also be appreciated.
: > : > :
: > : > : Thanks
: > : > :
: > : > : JH
: > : > :
: > : > :
: > : > :
: > : >
: > : >
: > :
: > :
: >
: >
:
: This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Arun Goel |
last post by:
Hi all,
I have set up rmiregistry.exe to run as service on Windows 2000 Server
.. I set it up using "srvany.exe".
It is running fine, but when I logoff, it stops.I did a lot of
research but I...
|
by: JonBoy |
last post by:
Is it possible to put the logoff/shutdown/restart buttons on an ASP page or something similar? If so can anyone point me in the direction of some code please or where I can read how to do it
...
|
by: Allan Bredahl |
last post by:
Hi All
I am trying to construct an application that is able to cancel a machine
shutdown, reboot or logoff. And after performing some stuff to perform the
original shutdown order :...
|
by: Jm |
last post by:
Hi All
I have a simple vb.net app that once run for some reason does not allow me
to log off or shutdown the pc ? When i try to do so it will close my app and
then will only shutdown or logoff...
|
by: Jm |
last post by:
Hi All
I have an app that when running if a user selects logoff or shutdown from
the start menu, it will close itself but not logoff windows or shutdown.
From what i have found so far its most...
|
by: Stefan Krah |
last post by:
Hello,
I'm trying to run a Python script as a Windows service with a defined
shutdown. The script (enigma-client.py) handles the communications with
the server in a distributed computing effort...
|
by: sam |
last post by:
I have a vb.net app that runs without a visible window. When the user
logs off or attempts a shutdown, the app is not quitting and prevents
the logoff/shutdown until the task is killed.
Is there...
|
by: =?Utf-8?B?Zmh1bnRlcg==?= |
last post by:
Hi
I have a small .net Windows app that I need to run before the user logs off
the machine. This is a Windows App where a dialog is displayed to the user
and he/she needs to answer before the...
|
by: =?Utf-8?B?Zmh1bnRlcg==?= |
last post by:
I have a Windows Service that should pop a windows form right before logoff,
for the user to enter some information.
I got things working fairly well except that the user does not get to see
the...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: 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,...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |