-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiag.bat
More file actions
52 lines (45 loc) · 1.23 KB
/
diag.bat
File metadata and controls
52 lines (45 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
setlocal enabledelayedexpansion
echo ================================================================
echo PSO2 Server Diagnostic Script
echo ================================================================
echo Current Directory: %CD%
echo Date/Time: %date% %time%
echo ================================================================
echo.
echo Checking directory contents:
echo ----------------------------
dir /b
echo.
echo Checking for solution files:
echo ---------------------------
dir /b *.sln 2>nul
if !errorlevel! neq 0 echo No .sln files found
echo.
echo Checking for src directory:
echo --------------------------
if exist src (
echo src/ directory exists
echo Contents of src/:
dir /b src 2>nul
) else (
echo src/ directory NOT FOUND
)
echo.
echo Checking for project files:
echo --------------------------
for /r . %%f in (*.csproj) do echo Found: %%f
echo.
echo .NET SDK Check:
echo --------------
dotnet --version 2>nul
if !errorlevel! neq 0 (
echo .NET SDK not found or not in PATH
) else (
echo .NET SDK is available
)
echo.
echo ================================================================
echo Diagnostic completed
echo ================================================================
pause