Letzte Uploads (Ordnername) in txt speichern!?!

jolo

Herzlich willkommen!
Hallo zusammen!

Gibt es ein Script/Addon welches die letzten Ordner (nach Datum) (nur Ordnername) die hochgeldaen worden sind in eine txt datei schreibt ?

Das ganze sollte auf einer Homepage angezeigt werden deshalb vieleicht noch mit den befehl <br> am Ende jenes Ordner bzw. Ordnername.

Ordner1 <br>
Ordner2 <br>
Ordner3 <br>
u.s.w.

Danke
jolo
 
Ich lese ständig was vom Englischen Forum. :motz :)

Als rar-content.bat speichern.
Code:
:: [url]https://www.supernature-forum.de/[/url]
:: (c) by MaXg - maxg[at]supernature-forum.de
:: Letztes Update: 11.03.05
:: Diesen Text bitte nicht entfernen oder editieren

:: code Free ;o) 

:: code start

@echo off
if "%3"==".RAR" goto start
if not exist %9no-content.txt echo Von folgenden Dateien wurde kein contentfile erstellt: >%9no-content.txt
echo. >>%9no-content.txt
echo %2 >>%9no-content.txt
goto norar
:start
echo start
echo bitte warten, erstelle Inhalt von %2 ...
set inhalt=%TEMP%\G6inhalt_%1.txt
d:\ftp\rar3.exe vt %2 >%inhalt%
type %inhalt%
copy /y %inhalt% "%6%5.txt"
echo 226 Fertig, Kopie als %5.txt gespeichert.
del %inhalt%
:norar
if not exist D:\prog\inhalt\content.bat goto rest
if exist D:\prog\inhalt\content.bat goto weiter

:rest
echo @echo off >D:\prog\inhalt\content.bat
echo echo Alle Contentfiles loeschen? >D:\prog\inhalt\content.bat
echo echo strg unterbr fuer Abbruch >>D:\prog\inhalt\content.bat
echo echo Enter fuer weiter >>D:\prog\inhalt\content.bat
echo pause >>D:\prog\inhalt\content.bat

:weiter
echo del %2.txt >>D:\prog\inhalt\content.bat

rem uploadinfo ausgeben
if not exist %8last_upload.txt goto upinfehlt
if exist %8last_upload.txt goto upinfda

:upinfehlt
echo Uploadinfo by MaXg >%8last_upload.txt
echo Letze Uploads, sortiert nach Datum >>%8last_upload.txt
echo. >>%8last_upload.txt
echo Von %4 kam am %7 >>%8last_upload.txt
goto ende

:upinfda
echo Von %4 kam am %7 >>%8last_upload.txt
goto ende

:ende
exit

:: code end

Syntax für den Server:
Event "OnFileUploadet" ->
Code:
D:\prog\inhalt\rar-content.bat $USR_ID $USR_FILE $USR_FILEEXT $USR_NAME $USR_FILENOEXT $USR_FILEPATH "$DD.$MM.$YY um  $TIME ->$USR_FILENOEXT$USR_FILEEXT<- Filegroesse: $USR_FILESIZE Bytes" d:\ftp\download\ d:\prog\inhalt\

Noch die Pfade anpassen....
d:\ftp\rar3.exe = Pfad zum DOSRar
D:\prog\inhalt\rar-content.bat =Pfad zur Batchdatei
d:\ftp\download\ = Speicherort der Textdatei
d:\prog\inhalt\ = Arbeitsverzeichnis

BR's dazwischen:
Schreibe zwischen Zeile 48 und 49 & 52 und 53:
echo <br> >>%8last_upload.txt
 
Zuletzt bearbeitet:
Hallo

Danke MaXg für deine Mühe das Script ist Super aber ich habe noch Probleme mit den <br>'s ! könntest du mal den Code der in die rar-content.bat rein kommt mal mit den <br>'s schreiben?

Würde mich freuen!

cu
 
So müsste das klappen:

Code:
:: [url]https://www.supernature-forum.de/[/url]

:: (c) by MaXg - maxg[at]supernature-forum.de

:: Letztes Update: 17.06.05

:: Diesen Text bitte nicht entfernen oder editieren



:: code Free ;o) 



:: code start



@echo off

if "%3"==".RAR" goto start

if not exist %9no-content.txt echo Von folgenden Dateien wurde kein contentfile erstellt: >%9no-content.txt

echo. >>%9no-content.txt

echo %2 >>%9no-content.txt

goto norar

:start

echo start

echo bitte warten, erstelle Inhalt von %2 ...

set inhalt=%TEMP%\G6inhalt_%1.txt

d:\ftp\rar3.exe vt %2 >%inhalt%

type %inhalt%

copy /y %inhalt% "%6%5.txt"

echo 226 Fertig, Kopie als %5.txt gespeichert.

del %inhalt%

:norar

if not exist D:\prog\inhalt\content.bat goto rest

if exist D:\prog\inhalt\content.bat goto weiter



:rest

echo @echo off >D:\prog\inhalt\content.bat

echo echo Alle Contentfiles loeschen? >D:\prog\inhalt\content.bat

echo echo strg unterbr fuer Abbruch >>D:\prog\inhalt\content.bat

echo echo Enter fuer weiter >>D:\prog\inhalt\content.bat

echo pause >>D:\prog\inhalt\content.bat



:weiter

echo del %2.txt >>D:\prog\inhalt\content.bat



rem uploadinfo ausgeben

if not exist %8last_upload.txt goto upinfehlt

if exist %8last_upload.txt goto upinfda



:upinfehlt

echo Uploadinfo by MaXg >%8last_upload.txt

echo Letze Uploads, sortiert nach Datum >>%8last_upload.txt

echo. >>%8last_upload.txt

echo Von %4 kam am %7 >>%8last_upload.txt

echo <br> >>%8last_upload.txt

goto ende



:upinfda

echo Von %4 kam am %7 >>%8last_upload.txt

echo <br> >>%8last_upload.txt

goto ende



:ende

exit



:: code end
 
Oben