473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Deleting file from a CD-RW

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

Expand|Select|Wrap|Line Numbers
  1.  
  2. My.Computer.FileSystem.DeleteFile (strFile)
  3.  
  4. Set fs = CreateObject("Scripting.FileSystemObject")
  5.  
  6. fs.deletefile strFile
  7.  
  8.  
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
0 738

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

Similar topics

17
by: Behrang Dadsetan | last post by:
Hi all, I would like deleting specific characters from a string. As an example, I would like to delete all of the '@' '&' in the string 'You are ben@orange?enter&your&code' so that it becomes...
6
by: User | last post by:
Anyone have ideas which os command could be used to get the size of a file without actually opening it? My intention is to write a script that identifies duplicate files with different names. I...
4
by: al havrilla | last post by:
hi all what does the phrase: "scalar deleting destructor" mean? i'm getting this in a debug error message using c++ 7.1 thanks Al
1
by: Bill Rogers | last post by:
I have been trying to get _CrtDumpMemoryLeaks() to report the allocation point file and line number in my source file. Instead it always reports the allocation occurred in crtdbg.h, line 692. I...
5
by: George | last post by:
VB.net 2003 standard, XP windows home edition. Installed first application OK today. When I removed the application via Control Panel, there were no problems and the app folders were deleted. ...
8
by: shandra | last post by:
I have a file I need to delete or truncate. I tried using the KILL command in VB6. I tried using the file.delete command in VB.net. I tried manually deleting, renaming, and copying over the...
3
by: SM | last post by:
Hello, Im trying to access elements in my XML file using the JavaScript DOM but i'm not sure how. I use AJAX to access the XML and then use the responseXML property to access the XML file data. I...
4
by: smp9737 | last post by:
Hello. I'm developing a Win32 Console Application for a Smart Device (MotoQ). All i need to do is delete a file with a known name and path. I'm under the impression that I have to use...
1
by: =?Utf-8?B?am9lbA==?= | last post by:
I have XP. I have some SONY CD-Roms 700 MB; when I try to delete files I get the following error message: Files on this CD are read only. Is there anyway I can change the files so that they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.