Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup to CD question

Status
Not open for further replies.

Rich196

Programmer
May 17, 2003
42
US
Hi,

I have a question about a backup procedure. I am wanting to backup to a CD and am using XP and VFP 8.0. When I issue COPY FILE I get a message "unable to create file d:\...". I want to be able to do this programatically because this is a single user app. to be mass distributed. It seems that Windows will not allow the COPY FILE to be done. I can do it manually with Windows Explorer OK. Is there a way to do this without requiring an extra piece of software that users would have to purchase such as WinZip, Roxio, etc.?

P.S. I also understand that the files copied from the CD would be marked read-only, so maybe what I'm trying to do is not a good idea.

Thanks in advance,
Rich
 
I think you'll have to make calls on the API that burns
CD's, but I'm unsure.

Yes, the files will be read-only. You'd have to reset the
read-only attribute if a restore from CD is necessary.


Darrell
 
Rich196,

It appears that there is an interface (ICDBurn) that handles this in shell32.dll, however the object browser can't see it. So given the lack of time at my end to take a stab at this in VFP, perhaps you could use the ActiveX available here:



Additional information on ICDBurn and more can be found here (though the article is for C++, there is plenty of useful information on exactly how this works in WinXP):


boyd.gif

craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Thanks for both of your suggestions. I will check into them and if I have success I will post.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top