Deleting file from a CD-RW

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bean41
    New Member
    • Apr 2007
    • 3

    Deleting file from a CD-RW

    Hello,

    I am trying to create a program in Visual Basic 5 that deletes a specific file from a CD-RW. I have tried using the following code:-

    Code:
    My.Computer.FileSystem.DeleteFile (strFile)
    
    Set fs = CreateObject("Scripting.FileSystemObject")
    
    fs.deletefile strFile
    When the file name is passed to the strFile as a string, the program runs, but it does not allow me to delete the file from the CD-RW. Please could someone tell me if I am using the wrong code, or if I have made a mistake in the code above? Any help would be appreciated.

    Thanks for looking.
Working...