Talk2Tom11 Posted February 23, 2004 Posted February 23, 2004 I was wondering what the code would be for this example. I am making a program when when you click a button it will open a file from the CD. But if you click another button, it opens a file from a CD as well. The difference is that the second button's file is on anyother CD. How do I have the computer check if it is on the current cd, and if it is run it, but if it isn't, then give a message to say, insert Disk 2? If you know please post. Quote
*Gurus* Derek Stone Posted February 23, 2004 *Gurus* Posted February 23, 2004 [msdn]System.IO.File[/msdn].Exists() Quote Posting Guidelines
Talk2Tom11 Posted February 23, 2004 Author Posted February 23, 2004 would i be writing that in an if statement? Quote
rifter1818 Posted February 23, 2004 Posted February 23, 2004 yes if system.io.file.exists("Filename") then 'Files there else 'Files not there end if Quote
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.