Autor Beitrag
Blamaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 24.08.08 22:09 
Hallo,

ich wollte mich mal etwas mit der dfUnrar Komponente befassen.

Nachdem ich den Beispielsource auf ein meiner Meinung nach Minimum zerlegt habe kam dabei folgender Code zustande:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
dfUnRar1.FileList.Clear;
dfUnRar1.FileName := 'C:\Pfad zur Rar Datei\Test.rar'// Pfad zur Testdatei
dfUnRar1.FileList.Add('\Test.txt');   // Dateiname der im Rar Archiv zu entpackenden Datei
dfUnRar1.Directory := 'C:\';     // Verzeichnis zum Speichern der Test.txt
dfUnRar1.Extract;


Wenn ich nun allerdings auf meinen Entpacken Button klicke tut sich nichts.

Es kommt zwar keine Error meldung oder irgend ein anderer Fehler, aber es wird keine Test.txt in C:\ erstellt.

Jemand eine Idee was daran falsch ist ?

mfg Blamaster
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 31.08.08 00:00 
Besitzt die Datei aus der Du entpacken willst eine Datei test.txt im Haupt-Verzeichnis?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 31.08.08 10:52 
Jap, hast recht daran lag es. Habe die Pfadangabe angepasst und nun geht es.

mfg Blamaster