Autor Beitrag
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mo 22.07.02 11:49 
Ich habe ein Multifunktionelles Tool auf OpenSource Basis gecodet, das folgende Funktionen bietet:
* Abarbeitung einer Textdatei Zeile für Zeile
* Aufrufen einer anderen Applikation mit dem String der aktuellen Zeile als Parameter
* Zweiter Parameter lässt sich beliebig gestalten. Handelt es sich in Parameter1 beispielsweise um eine URL, kann der FileName extrahiert werden und mit einem Counter ergänzt werden, um doppelte Dateien auzuschliessen uvm.
* Timergestartet: Nach Beendigung eines "Jobs" lässt sich z.b. alle 30 Min. ein weiterer Job starten. Um versehentliche Überschreibungen bei einem wiederkehrenden Dateinamen zu umgehen, kann man in Parameter 2 den Filename mit einem Startcounter versehen. z.b. test1.html

eine genaue Anleitung wie das Tool zu verwenden ist uvm gibts auf meiner website krazz.net/retnyg

screenie: user defined image

download krazz.net/retnyg/lineterpreter.zip


Zuletzt bearbeitet von retnyg am Mo 25.04.05 17:44, insgesamt 1-mal bearbeitet
retnyg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mo 25.04.05 17:17 
Titel: Neue Version 1.3
jaja, dieses Programm war das erste im DF veröffentlichte Open-Source Projekt, mittlerweile schon fast 3 Jahre alt. Ich brauch es immer mal wieder, und bastle seither dran herum.

nun gibts wieder ne neue version, durch KOL nur schlanke 24KB klein.
Unterstützt nun auch die Anwendung als Konsolenprogramm, und einige neue features.

hier ein auszug aus dem readme file:
readme.txt hat folgendes geschrieben:

LineTerpreter v1.3
author: Retnyg @ krazz.net/retnyg
a Console/GUI Program to start another program with the contents of a textfile
as parameter, by going through every line of the text file.

if the program is started without any parameters, it switches to windowed mode.
see showsyntax procedure for parameter syntax

Example:
->
Existing Folder with files unpack1.zip unpack2.zip and blubb.zip:

- start cmd.exe to launch a command line
- go to the folder containing the zip files, ie:
cd \download\myzips
- type:
dir /B *.zip > ziplist.txt
(that will generate a file ziplist.txt, with all the plain filenames of the zips)
- lineterpreter "/c:C:\zip\pkunzip.exe -o" /t:ziplist.txt /p2:C:\unpacked');
that would assume that u have pkunzip.exe in c:\zip and lineterpreter.exe in one
of the folders in your PATH-environment variable (i.e. C:\windows\system32) or in
the same folder as your zip files
the quotes around "/c:C:\zip\pkunzip.exe -o" are required to let the program
handle C:\zip\pkunzip.exe -o as one term, not two ('coz it has a space inside)

Result: linterpreter starts:

C:\zip\pkunzip.exe -o unpack1.zip C:\unpacked
C:\zip\pkunzip.exe -o unpack2.zip C:\unpacked
C:\zip\pkunzip.exe -o blubb.zip C:\unpacked

so all zips would be extracted into that path, overwriting existing files (-o switch)
(so pkunzip.exe will not wait for a user input, if it finds a existing file)

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...