Autor Beitrag
Snippy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 61



BeitragVerfasst: So 18.05.03 18:24 
Hi!
Ich hab mal 2 Fragen:

1) Wie kann ich ne Bat-Datei ausführen? (Fällt mir nichts zu ein)

2) Wie kann ich ne Bat-Datei austomatisch löschen, sobald diese durchgelaufen ist?

Danke

_________________
Carpe Diem!


Zuletzt bearbeitet von Snippy am So 18.05.03 19:21, insgesamt 1-mal bearbeitet
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: So 18.05.03 18:26 
Hi,
löschen kannst du die nur wenn du sie extern aufgerufen hast ... aber die Bat-Datei kann sich nicht selbst löschen...

MfG BungeeBug
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: So 18.05.03 18:31 
Also meine test.bat mit einer Zeile Inhalt:
del test.bat
hat sich wunderbar selber gelöscht eben.
Snippy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 61



BeitragVerfasst: So 18.05.03 18:42 
Jo!

Das geht also schonmal! (Habs getestet)

Und wie is das damit, dass ich die Datei ausführe? (Also mit welchen Code kann ich die Datei starten?)

_________________
Carpe Diem!
Snippy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 61



BeitragVerfasst: So 18.05.03 20:16 
Ok!

Ich habs schon hinbekommen!

THX

_________________
Carpe Diem!
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Mo 26.05.03 12:57 
Hallo,

Wenn man nicht weiß wie die .BAT heißt kann man die auch
mit "del %0" löschen.
%0 steht für ParamStr(0)
Luncustaf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Mo 26.05.03 16:48 
wegen dem ausführen

such im forum mal anch shellexecute.

gr€€tz
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 26.05.03 18:59 
das ist ja ganau das schöne an BATs: dass sie sich selber löschen kann. das können delphi proggis nciht !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 26.05.03 21:31 
Eine Batch-Datei ist ja auch keine ausführbare Exe.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 27.05.03 16:55 
da hast du recht !

_________________
In the beginning was the word.
And the word was content-type: text/plain.