By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Deleting file from a CD-RW

P: 3

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:-

Expand|Select|Wrap|Line Numbers
  2. My.Computer.FileSystem.DeleteFile (strFile)
  4. Set fs = CreateObject("Scripting.FileSystemObject")
  6. 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.
Sep 2 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.