Solved

Logoff Script - Execute and Wait

Posted on 2004-04-06
6
11,382 Views
Last Modified: 2010-05-18
I am having trouble writing a logoff script for Windows2000/XP.  The idea is that when a user clicks to log off, before the machine completely logs the user off, a program will be run, and the machine will finish logging off when the program is quit.  Namely, I need the user to log off, be directed to a webpage in IE, have them input some data, close IE, and finish being logged off.  For now, I'm trying to write it in a simple .bat file, because I'm not that well versed with VB.  Here's what I have so far...

  @echo off
  start iexplore http://website.com

This however runs iexplore and finishes shutting down without waiting.  I don't want a predetermined amount of wait time, because the data input may take upwards of 3 minutes, but as few as a few seconds.  There is a software title named ActiveExit (http://www.winability.com/active-exit) that does exactly what I want.  But I don't want to have to pay for this, if a simple script will do.  

Does anyone have cure?  I don't care what scripting language it's in...
0
Comment
Question by:dgooding
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:Kavar
ID: 10770971
change to start /wait http://website.com
0
 
LVL 2

Author Comment

by:dgooding
ID: 10774503
that didn't work.
0
 
LVL 2

Author Comment

by:dgooding
ID: 10775016
I have answered the question myself.  I would like to keep this question available for others to view with an "accepted answer", but I would like to keep my points.  What do I do?  

The solution...

***logoff.vbs***
Set WshShell = WScript.CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("iexplore http://website.com", 1, True)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:Kavar
ID: 10776339
sorry that didn't work start /wait tells the command processor to stay open and wait for the application to return, strange that it did not...

To close your question and request a refund, post a response with text similiar to..

I have figured it out myself, I would like my points refunded
0
 
LVL 2

Author Comment

by:dgooding
ID: 10776369
I have figured it out myself, I would like my points refunded.  (see above for solution)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10807128
A request has been made in Community Support to close this question:

http://www.experts-exchange.com/Community_Support/Q_20951085.html

As there are no objections finalized by:

- PAQ-ing the question and refunding 65 points

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is there any way to convert exponential value to number in sql server 5 68
Hive vs Impla in Hadoop 1 79
Renaming with batch file 9 80
Do Wend Macro not working 22 58
This is about my first experience with programming Arduino.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question