paynea Posted October 24, 2002 Posted October 24, 2002 hello there, i don't 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, i'm opening files using the 'System.Diagnostics.Process.Start(filename)' to open the file with it's 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 can't find any functions in the IO class that can do this? thanks, drew. Quote
Guest Prashant Posted October 24, 2002 Posted October 24, 2002 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? Quote
*Gurus* divil Posted October 24, 2002 *Gurus* Posted October 24, 2002 Prashant: No there isn't. paynea: I think the process class can raise an event once the application you start has been closed. Take a look at ProcessStartInfo. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Gurus* Derek Stone Posted October 24, 2002 *Gurus* Posted October 24, 2002 The OnChanged method of the System.IO.FileSystemWatcher class might also be a big help to you. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.