Running program on closing of windows nt 
Author Message
 Running program on closing of windows nt

I want to run a program that copies a couple of files around on closing of
windows. How do you get a program to run a closing of windows, Or if the
program is already running getting it to copy the files when windows tells
it to close?
Thanks for any help
Dean


Mon, 25 Dec 2000 03:00:00 GMT  
 Running program on closing of windows nt
Hi
In the Query Unload event of a form U can do this.
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbAppWindows Then
    'Do the appropriate thing
End If
End Sub

Cheers
Joseph
Grid Tech - Singapore

Quote:

> I want to run a program that copies a couple of files around on closing of
> windows. How do you get a program to run a closing of windows, Or if the
> program is already running getting it to copy the files when windows tells
> it to close?
> Thanks for any help
> Dean



Mon, 25 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Comm ports and running Quickbasic programs under windows or NT

2. Can't run VB6 program on Window NT 4 terminal server

3. Determinie if a specific Windows Program Is Running (Win NT)

4. How to close VB 4.0 16 bit program when a Crystal report Window is closed

5. API to Close other programs and verify if program is run

6. Determining if Exe is running, window has closed down, window has opened

7. Application runs with Windows 95/NT, but doesn't work with Windows 98

8. Packaging Apps on Windows 2000 to run on Windows NT

9. Launching and Monitoring a 16-bit Windows app from VB5 application running on Windows NT 4.0

10. How to detect 16-bit Windows-based application running under Windows NT

11. Launching and Monitoring a 16-bit Windows app from VB5 application running on Windows NT 4.0

12. installing vb program in Windows NT, Windows 2000

 

 
Powered by phpBB® Forum Software