#1 Burning Software

It is currently Thu Dec 19, 2024 1:53 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: beginner question
PostPosted: Tue May 24, 2005 1:42 pm 
hello,

how do you copy specific files to CD/DVD into their own directory... for example if i wanted to copy a file c:\source_dir\file.dat to CD as D:\target_dir\file.dat, how would i do that? the code i'm using right now is below, but it burns a file on the CD '\target_dir\file.dat' and doesn't create any directories...

Code:
   StarBurn_ISO9660JolietFileTree_Add(
      l__PVOID__ISO9660JolietFileTree,
      ( PCHAR )( &l__CHAR__ExceptionText ),
      sizeof(l__CHAR__ExceptionText),
      &l__ULONG__Status,
      "C:\\source_dir\\file.dat",
      "\\target_dir\\file.dat",
      FILE_TIME_LAST_WRITE,
      &l__PVOID__Root,
      NULL);


what am i doing wrong? thank you, sorry for the dumb question =)


Top
  
 
 Post subject:
PostPosted: Tue May 24, 2005 4:02 pm 
ok, i have been playing around and got it to do what i want with this code. is this the right way to go about it?

Code:
   StarBurn_ISO9660JolietFileTree_Add(
      l__PVOID__ISO9660JolietFileTree,
      ( PCHAR )( &l__CHAR__ExceptionText ),
      sizeof(l__CHAR__ExceptionText),
      &l__ULONG__Status,
      NULL,
      "target_dir",
      FILE_TIME_LAST_WRITE,
      &l__PVOID__Root,
      &l__PVOID__NextChild);

   StarBurn_ISO9660JolietFileTree_Add(
      l__PVOID__ISO9660JolietFileTree,
      ( PCHAR )( &l__CHAR__ExceptionText ),
      sizeof(l__CHAR__ExceptionText),
      &l__ULONG__Status,
      "c:\\source_dir\\testfile.dat",
      NULL, // Keep same filename
      FILE_TIME_LAST_WRITE,
      &l__PVOID__NextChild,
      NULL);


Top
  
 
 Post subject:
PostPosted: Tue May 24, 2005 8:41 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Exactly!

P.S. We *LOVE* self-supporting customers :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group