Results 1 to 2 of 2

Thread: [2005] You Have files waiting to be written to CD

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    14

    [2005] You Have files waiting to be written to CD

    Is there anyway to simulate this function in .NET. I have some files and I would like to simulate this function so that the "D" drive or "cd drive" opens with my files ready to be written to cd. Is there anyway to simulate this.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: [2005] You Have files waiting to be written to CD

    I think you could just do this by using a copy method (My.Computer.FileSystem.CopyFile for example) to copy the files to the CD drive because thats all that happens when you do it through explorer. If you copy files into the D drive it will realise that this is a CD drive and will give the normal "you have files waiting" message. Never tried it through code though so cant say 100% whether or not this will work.
    You will also have to put in a fair bit of checking first to 1. find out which drive is the CD drive (by looping through the Drives collection that you can get from My.Computer somewhere) and 2. Check (if possible) to see if the CD drive is actually capable of writing to disc and is not just a CD/DVD reader. Then of course you would have to think about what your app should do if there are already files sat waiting to be burnt etc etc

    Hope that helps a bit though
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width