From 8357c5ac79195ea49c7f31ba2a72f5001e0c97df Mon Sep 17 00:00:00 2001 From: Lande <64076502+Laande@users.noreply.github.com> Date: Fri, 3 Feb 2023 06:50:51 +0100 Subject: [PATCH] Debug bat file info - Java version - C++ Redistributable - Hosts file - System type - G-Earth info & error (separate file) --- Debug/debug_info.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Debug/debug_info.bat diff --git a/Debug/debug_info.bat b/Debug/debug_info.bat new file mode 100644 index 0000000..635dfb8 --- /dev/null +++ b/Debug/debug_info.bat @@ -0,0 +1,22 @@ +@echo off + +echo --- Java > debug_info.txt +echo [*] Getting Java version +java -version 2>> debug_info.txt + +echo --- C++ >> debug_info.txt +echo [*] Getting C++ info +wmic product get name | findstr Redistributable >> debug_info.txt + +echo --- Hosts >> debug_info.txt +echo [*] Getting Hosts info +type C:\Windows\System32\Drivers\etc\hosts | findstr /v "^#" | findstr . >> debug_info.txt || echo File empty. >> debug_info.txt + +echo --- System type >> debug_info.txt +echo [*] Getting System info +echo %PROCESSOR_ARCHITECTURE% >> debug_info.txt + +echo --- G-Earth >> debug_info.txt +echo [*] Opening G-Earth +echo [!] Close the G-Earth window when your problem occur +java -jar ../G-Earth.jar >> debug_info.txt 2> debug_error.txt