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:-
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.
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
Thanks for looking.