Autor Beitrag
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 11.01.08 10:13 
user profile iconwhitef hat folgendes geschrieben:
mh... scheint fast zu funktionieren!!!

jetzt happert es nur noch am output-dateinamen.
da keiner vergeben ist, nennen die sich jetzt ".part1.rar"
und beim abarbeiten des folgenden eintrages in der listbox, versucht die Rar.exe natürlich die vorhandenen soeben erstellten dateien zu überschreiben...

Und warum gibst Du keinen an ?
zb. Aus C:\Eigene Dateien\Test.rar wird C:\Eigene Dateien\Test_Kopie_1.rar ...Kopie_2 usw.

ausblenden Delphi-Quelltext
1:
ExtractFilePath(ListBox1.Items.Strings[i]) + ExtractFileName(ChangeFileExt(ListBox1.Items.Strings[i],'') + '_Kopie_' + IntToStr(i) + '.rar');					

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
whitef Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 202
Erhaltene Danke: 1

Windows X
Delphi XE X
BeitragVerfasst: Fr 11.01.08 15:37 
also, ich kann jetzt endlich sagen ich hab es hinbekommen...
Das Ergebnis sieht so aus:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
 Form1.ListBox.SelectAll;
 i:=Form1.ListBox.ItemIndex;
 if i > -1 then //Ist etwas markiert
 for i:=0 to Form1.ListBox.Count-1 do
 begin

  Form1.ListBox2.Items.Add(ExtractFileName(Form1.ListBox.Items.Strings[i]));
  Form1.ListBox2.SelectAll;
  a:=Form1.ListBox2.ItemIndex;
     if a > -1 then //Ist etwas markiert
     for a:=0 to Form1.ListBox2.Count-1 do
     begin

Form1.syntax.Text := '-RAR a -ep1 -r -s -md64 ';
Form1.all.Text := Form1.syntax.Text +
                  '-m' + Form1.cm.Text + ' ' +
                  Form1.Edit11.Text +
                  Form1.Edit22.Text +
                  Form1.output.Text +
                  Form1.ListBox2.Items.Strings[a] + ' ' +
                  Form1.ListBox.Items.Strings[i];
                //  Showmessage(Form1.all.Text);
ShellExecute(Handle, nil, PChar(Form1.Edit3.Text), PChar(Form1.all.Text), nil, SW_SHOW);
Form1.ListBox2.Items.Delete(0);
end;
end;



Vielen Dank an alle die mir geholfen haben!!!
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 11.01.08 21:15 
Sieht grausig aus, aber wenns funzt... was Ich Mir so nicht vorstellen kann :wink:

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)