Voici un petit script batch sympathique pour décrypter en masse nos fichiers.
@ECHO OFF
SET LOGVIEWER=C:\Program Files (x86)\Messenger Plus! Live\Log Viewer.exe
ECHO Decrypting...
ECHO @ECHO OFF > TEMP.BAT
FOR /R %%I IN (*.PLE) DO (
ECHO "%LOGVIEWER%" /decrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
CALL TEMP.BAT
DEL TEMP.BAT 2>NUL
ECHO FIN
SET LOGVIEWER=C:\Program Files (x86)\Messenger Plus! Live\Log Viewer.exe
ECHO Decrypting...
ECHO @ECHO OFF > TEMP.BAT
FOR /R %%I IN (*.PLE) DO (
ECHO "%LOGVIEWER%" /decrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
CALL TEMP.BAT
DEL TEMP.BAT 2>NUL
ECHO FIN
Pensez a mettre votre mot de passe, et éventuellement changer le chemin de log viewer.exe.
Évidemment les fichiers doivent tous avoir le même mot de passe.
Le même mais pour les encrypter :
@ECHO OFF
SET LOGVIEWER=C:\Program Files (x86)\Messenger Plus! Live\Log Viewer.exe
ECHO Encrypting all unecrypted log files in current directory and subdirectories...
ECHO @ECHO OFF > TEMP.BAT
FOR /R %%I IN (*.TXT) DO (
ECHO "%LOGVIEWER%" /encrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
FOR /R %%I IN (*.HTML) DO (
ECHO "%LOGVIEWER%" /encrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
CALL TEMP.BAT
DEL TEMP.BAT 2>NUL
ECHO FIN
SET LOGVIEWER=C:\Program Files (x86)\Messenger Plus! Live\Log Viewer.exe
ECHO Encrypting all unecrypted log files in current directory and subdirectories...
ECHO @ECHO OFF > TEMP.BAT
FOR /R %%I IN (*.TXT) DO (
ECHO "%LOGVIEWER%" /encrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
FOR /R %%I IN (*.HTML) DO (
ECHO "%LOGVIEWER%" /encrypt="%%I" /pwd=PASSWORDICI >> TEMP.BAT
ECHO IF %%ERRORLEVEL%% LEQ 1 DEL "%%I" >> TEMP.BAT
)
CALL TEMP.BAT
DEL TEMP.BAT 2>NUL
ECHO FIN