|You can't have CMD do things after it has been terminated. One way around this is to have a small script running in the background, which terminates when the main process is terminated. upon termination, it outputs a message that the user has left. To make the two scripts exchange data, you could have a temporary file which both programs read and get data (Especially the secondary script, which would need the name of the current user etc.).|
To have a script running in the background, with no window or interface being displayed, you can use the .Bat to .Exe converter which allows for invisible execution.
If infinity is infinite, is the square root of infinity infinite as well?
- Kurp Von Steiner