Solved

Logoff Script - Execute and Wait

Posted on 2004-04-06
6
11,381 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
  • 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

860 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