Solved

Logoff Script - Execute and Wait

Posted on 2004-04-06
6
11,378 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
Comment Utility
change to start /wait http://website.com
0
 
LVL 2

Author Comment

by:dgooding
Comment Utility
that didn't work.
0
 
LVL 2

Author Comment

by:dgooding
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 10

Expert Comment

by:Kavar
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now