22 lines
753 B
Batchfile
22 lines
753 B
Batchfile
@echo off
|
|
|
|
if exist %1\* (
|
|
echo directory
|
|
for /F "delims=" %%f in ('dir /b /s %1') do (
|
|
:: skip folders
|
|
if not exist "%%~f\" (
|
|
java -jar %DEV_TOOLS%\PortexAnalyzer.jar -p "%%~f_PortexAnalyzer_Report.png" -o "%%~f_PortexAnalyzer_Report.txt" "%%~f" | more
|
|
)
|
|
)
|
|
) else (
|
|
if exist "%~1_PortexAnalyzer_Report.txt" (
|
|
del "%~1_PortexAnalyzer_Report.txt"
|
|
)
|
|
if exist "%~1_PortexAnalyzer_Report.png" (
|
|
del "%~1_PortexAnalyzer_Report.png"
|
|
)
|
|
java -jar %DEV_TOOLS%\PortexAnalyzer.jar -p "%~1_PortexAnalyzer_Report.png" -o "%~1_PortexAnalyzer_Report.txt" "%~1" | more
|
|
start notepad "%~1_PortexAnalyzer_Report.txt"
|
|
start rundll32 "C:\Program Files (x86)\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %~1_PortexAnalyzer_Report.png
|
|
)
|