monitoring an open file???

paynea

Member
Joined
May 10, 2001
Messages
14
Location
UK - Leicester
hello there,

i dont know where to go on this and need a pointer. does anyone know of a function that can evaluate the open/closed status of a given file?

in my app, im opening files using the System.Diagnostics.Process.Start(filename) to open the file with its default application. i need to run a check so i can change some file attributes once the file is closed.
i had thought i could use a timer to evaluate weather the file is open or not. i cant find any functions in the IO class that can do this?

thanks,
drew.
 
I have a query of my own...is there a "System" object in Visual Basic 6.x ? If yes, how does one get to use it?
 
Prashant: No there isnt.

paynea: I think the process class can raise an event once the application you start has been closed. Take a look at ProcessStartInfo.
 
Back
Top