@echo off
setlocal EnableExtensions
chcp 65001 >nul
cd /d "%~dp0"
title OnlyCoin - Tani Raporu

call "%CD%\scripts\resolve-node.cmd"
if errorlevel 1 goto :failed

"%NODE_EXE%" --no-warnings "%CD%\scripts\diagnose.js"
if errorlevel 1 goto :failed
start notepad.exe "%CD%\ONLYCOIN-TANI-RAPORU.txt"
pause
exit /b 0

:failed
echo Tani islemi basarisiz oldu.
pause
exit /b 1
