Jump to content

Deleting files from a CD - HELP!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
Does anyone know how to delete read-only files from a CD?
It's re-writable but when i try to write something over it, it gives me an error... So i want to know how to use VB and delete it!

I've tried this:

Quote

Private Sub Command1_Click ()
Kill "D:\Monster.exe"
End Sub

But then it comes up with this error message:
Posted Image

I've also tried RmDir "D:\Monster.exe"
But it says that the folder can't be found...

Anyone help?

#2
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
Oh man, admins can you please move this to just Visual Basic programming forum... I accidently put it in Tutorials because i was writing one before this post.

Thankyou..

EDIT - Thanks once again!

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well you can't do that in Visual Basic with that command for sure! a CD is ROM, but as this is re-writable there is a special procedure to delete files from a CD, you need to use Nero or something like that, You cannot delete it with normal API commands or with the Kill command. I think it is hard (if possible) to make this with VB.

#4
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
OH! Ok thanks so much!

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You are welcome. I am not saying that it is not possible in VB, but there are special procedures for sure, perhaps this project would even be too big for a professional Vb programmer, It would need a whole team to develop such an application (Like Nero) and it might not even be possible..

#6
ViRuSS

ViRuSS

    Learning Programmer

  • Members
  • PipPipPip
  • 78 posts
oh man i need this help aswell

#7
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Read my posts.

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It's important to note that it isn't possible to delete individual files from a CD anyway, regardless of whether you're programming them or not. Even if rewritable, CDs are designed to be completely rewritten with other data, unless formatted with software like Sonic's DLA or Nero's InCD.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums