About using NeroCom continue to burn into CD problem

vbimport

#1

:confused:
It have finished burnning one folder with Dir1 of file1 in CD,how to burn the file2 to the Dir1 folder?


#2

In use in VB


#3

folder is the main folder, subfolder your subfolder

VB.net
SubFolder.Name = "SubDir"
SubFolder.Files.Add(“xxx”) <-----here
Folder.Folders.Add(SubFolder)

Simply add a file to the subfolder like u add a subfolder to the folder:)


#4

Hi,thanks for update.

'========================================
Set F_file = Fso.GetFile(“C:\1\2.rar”)
Set N_NeroFile = New NeroFile
N_NeroFile.Name = F_file.Name
N_NeroFile.SourceFilePath = F_file.Path
Set N_NeroFolder = New NeroFolder
N_NeroFolder.Name = "SubDir"
N_NeroFolder.Files.Add N_NeroFile
m_INeroFolder.Folders.Add N_NeroFolder
m_ISOTrack.Name = "mydir"
m_ISOTrack.RootFolder = m_NeroFolder
m_ISOTrack.BurnOptions = NERO_BURN_OPTION_USE_JOLIET + NERO_BURN_OPTION_CREATE_ISO_FS
If m_Drive.Capabilities And NERO_CAP_BUF_UNDERRUN_PROT Then
m_Drive.BurnIsoAudioCD “TxRecBackup”, “Backup”, 0, m_ISOTrack, Nothing, Nothing, NERO_BURN_FLAG_WRITE + NERO_BURN_FLAG_DISABLE_EJECT + NERO_BURN_FLAG_BUF_UNDERRUN_PROT + NERO_BURN_FLAG_CLOSE_SESSION, 0, NERO_MEDIA_CD
endif

It results in the CD-ROM will automatically add a folder “SubDir1” there are a document “2.rar” rather than an increase in SubDir in the document “2.rar”, where the procedure is wrong?
He will try to increase “SubDir2”, “SubDir3”, "SubDir4 "…


#5

i’ll try to look at it when i’m at home, but

m_INeroFolder.Folders.Add N_NeroFolder
m_ISOTrack.Name = "mydir"
m_ISOTrack.RootFolder = m_NeroFolder

u add to m_INeroFolder your “tree” and then u put the m_NeroFolder to be the rootFolder. Which is the use of m_INeroFolder? maybe try to remove it


#6

Thank you willyx, the problem still exists, how to write code only correct?


#7
  1. NeroCOM how to set up the use of speed burners?
  2. NeroCom continued engraved on the use of CD issue of the CD has a folder Dir1 a file1 documents, how to burn paper File2 to Dir1 folder?
  3. How to get the CD content information (such as a CD of all Folders and documents)

with VB how to write code, thank you!


#8

[QUOTE=yangmydir;2101889]1. NeroCOM how to set up the use of speed burners?
2. NeroCom continued engraved on the use of CD issue of the CD has a folder Dir1 a file1 documents, how to burn paper File2 to Dir1 folder?
3. How to get the CD content information (such as a CD of all Folders and documents)

with VB how to write code, thank you![/QUOTE]

  1. u mean to set up the speed of burners? cause speed burners are unknow to me…

  2. emm… u have 2 files: 1.zip and 2.zip
    u get
    D:\subdir\1.zip
    D:\subdir1\2.zip
    ?
    If yes, the problem is that u try to create N subfolders with the same name.
    If u had already put a folder named “subdir” with the file, u cannot use the same rutine to add 2.zip. U need to check if alredy exist and pass the reference of the other dir.

Set N_NeroFolder = New NeroFolder
N_NeroFolder.Name = “SubDir”

N_NeroFile.Name = F_file.Name
N_NeroFile.SourceFilePath = F_file.Path
N_NeroFolder.Files.Add N_NeroFile <-1.zip

N_NeroFile.Name = F_file1.Name
N_NeroFile.SourceFilePath = F_file1.Path
N_NeroFolder.Files.Add N_NeroFile <-2.zip

This is ok, but if u use a recursive sub that do like

private sub test(F_file as …)
Set N_NeroFolder = New NeroFolder
N_NeroFolder.Name = “SubDir”

N_NeroFile.Name = F_file.Name
N_NeroFile.SourceFilePath = F_file.Path
N_NeroFolder.Files.Add N_NeroFile

end sub

This is BAD. Every time u call it u try to do again the named subdir and nero simply create a new subdir with a +1 prefix.

3)U need to get sessions?
However there is a nice tutorial in Vb (sorry , i use vb.net)

http://www.visual-basic.it/articoli/adsNeroVB.htm
u can get the source at http://www.visual-basic.it/scarica.asp?ID=786
It’s in italian :stuck_out_tongue:
Maybe u can try to translate with bablefish.


#9

The problem is not resolved?
1.I said that the burn is the write speed can set it ?

2.CD burners have a folder “Folder1”, there are a “File1.txt” document, but now I want to be in the CD-ROM “Folder1” folder burning more than a “File2.txt” document ?
I used Nero StartSmart Essentials software can be done, but I would like to use to achieve NeroCOM?

CD-ROM, now have:
CD–>>Folder1–>File1.txt

I would like to burn:
CD–>>Folder1–>file2.txt

I want results:
CD–>>Folder1–>file1.txt
–>file2.txt

This is not, but I become a test is this:
CD–>>
Folder1–>file1.txt
Folder11–>file2.txt


#10

1 issue has been resolved, but not solve the problem 2, please help, thank you!


#11

u have imported one session and u want to write in an “old” directory?
However the problem is that u try to create a directory that already exist and nero add the +1 suffix.


#12

Why use Nero StartSmart Essentials software can be added to the original document on the directory is, and will not add suffixes!
Used Nero StartSmart Essentials software can be achieved:
CD–>>Folder1–>file1.txt
—>file2.txt
i can only do with NeroCOM:
CD–>>
Folder1–>file1.txt
Folder11–>file2.txt

If we do, and Nero StartSmart Essentials software in the “old” folder in Riga, how to operate?


#13

I suppose that u have imported an old session and your m_INeroFolder is the imported session. The code is in VB.net

m_INeroFolder.Folders.Item(i) is the array of folders that u already have.

u need to find your subdir first

For i As Integer = 0 To m_INeroFolder.Folders.Count - 1
…If m_INeroFolder.Folders.Item(i).Name = “subdir1” Then
…found = True
…N_NeroFolder = m_INeroFolder.Folders.Item(i)
…exit For
…End If
Next

if found is true then simply add your file to the N_NeroFolder, if false the subdir doesn’t exist and u neet to create it (and then add to
m_INeroFolder)


#14

Willyx thank you, too, and I understand!