viewing paste diag.bat | Bash

Posted on the
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
@echo off
rem Writen by Akkarin
color 02
Title Graffiti Diagnostics Tool
echo +----------------------------------------------------------------+
echo :            Welcome to the Graffiti Diagnostics Tool            :
echo :        This tool has been lovingly developed by Akkarin        :
echo +----------------------------------------------------------------+
echo.
echo +----------------------------------------------------------------+
echo : This will determine if there is a problem with the server      :
echo +----------------------------------------------------------------+
 
:menu
echo.
echo.
echo.
echo.
echo +----------------------------------------------------------------+
echo : Menu                                                           :
echo +----------------------------------------------------------------+
echo : 1.) Perform PING and TRACERT                                   :
echo : 2.) Open Diagnostics report                                    :
echo : 3.) Detect faulty GraffitiRO directory                         :
echo : 4.) Exit Diagnostic Tool                                       :
echo +----------------------------------------------------------------+
set menuop =
set /p menuop=- Please enter an option: 
if '%menuop%'=='1' goto ping
if '%menuop%'=='2' goto opendiag
if '%menuop%'=='3' goto detect
if '%menuop%'=='4' exit
echo.
echo.
echo +----------------------------------------------------------------+
echo : ERROR                                                          :
echo +----------------------------------------------------------------+
echo : '%menuop%' Is not a vaild option!                              :
echo +----------------------------------------------------------------+
goto menu
 
:gbtm
echo.
echo.
echo +----------------------------------------------------------------+
Echo : Go back to menu?                                               :
echo +----------------------------------------------------------------+
set goback=
set /p goback=- Y/N: 
if '%goback%'=='Y' goto gotomenu
if '%goback%'=='y' goto gotomenu
if '%goback%'=='N' exit
if '%goback%'=='n' exit
echo.
echo.
echo +----------------------------------------------------------------+
echo : ERROR                                                          :
echo +----------------------------------------------------------------+
echo : '%goback%' is invaild! Only type Y or N !!                     :
echo +----------------------------------------------------------------+
cls
goto gbtm
 
:gotomenu
cls
goto menu
 
 
:ping
echo.
echo +----------------------------------------------------------------+
echo : Running PING and TRACERT diagnostic, please wait               :
echo +----------------------------------------------------------------+
ping -n 10 204.152.221.175 > Diagnostics.txt
tracert 204.152.221.175 >> Diagnostics.txt
echo.
echo.
echo +----------------------------------------------------------------+
echo : PING diagnostic complete. See Diagnostic.txt for results.      :
echo +----------------------------------------------------------------+
Diagnostics.txt
echo.
goto gbtm
 
 
:opendiag
echo.
echo.
echo +----------------------------------------------------------------+
echo : Would you like to open the Diagnostics report file?            :
echo +----------------------------------------------------------------+
set opendiag=
set /p opendiag=- Y/N: 
if '%opendiag%'=='Y' goto opendiag1
if '%opendiag%'=='y' goto opendiag1
if '%opendiag%'=='N' goto gbtm
if '%opendiag%'=='n' goto gbtm
echo.
echo.
echo +----------------------------------------------------------------+
echo : ERROR                                                          :
echo +----------------------------------------------------------------+
echo : '%opendiag%' is invaild! Only type Y or N !!                   :
echo +----------------------------------------------------------------+
goto gbtm
 
:opendiag1
Diagnostics.txt
goto gbtm
 
:detect
echo.
echo.
set rodir =
set /p rodir=- Please Enter Your Graffiti (e.g. C:\Program Files\Gravity\RO\): 
if not exist "%rodir%\grafmain.grf" goto notinstalled
if not exist "%rodir%\grafpatch.grf" goto notinstalled
if not exist "%rodir%\GraffitiRO Patcher.exe" goto notpinstalled
if not exist "%rodir%\GraffitiRO.exe" goto notpinstalled
if not exist "%rodir%\rdata.grf" goto romissing
if not exist "%rodir%\data.grf" goto romissing
goto installed
 
:notinstalled
echo.
echo.
echo +----------------------------------------------------------------+
echo : Graffiti is not installed to that directory or there are       :
echo : files missing from your installation.                          :
echo +----------------------------------------------------------------+
goto gbtm
 
:notinstalled
echo.
echo.
echo +----------------------------------------------------------------+
echo : The Graffiti Patcher is not installed to that directory or     :
echo : there are files missing from your installation.                :
echo +----------------------------------------------------------------+
goto gbtm
 
:romissing
echo.
echo.
echo +----------------------------------------------------------------+
echo : Some of the main files needed to play RO are not installed to  :
echo : that directory. Please re-install Graffiti from graffitiro.com :
echo +----------------------------------------------------------------+
goto gbtm
 
:missing
echo.
echo.
echo +----------------------------------------------------------------+
echo : One or more Graffiti files are missing, please re-install the  :
echo : lite version from http://graffitiro.com/                       :
echo +----------------------------------------------------------------+
pause
exit
 
:installed
echo.
echo.
echo +----------------------------------------------------------------+
echo : GraffitiRO is installed properly on your computer.             :
echo +----------------------------------------------------------------+
goto gbtm
 
:delete
echo.
echo.
echo +----------------------------------------------------------------+
echo : This will allow you to delete your data folder.                :
echo : For this option to work properly, you must enter the full path :
echo : to the data folder in your RO directory. E.g.:                 :
echo : C:\Program Files\Gravity\RO\data                               :
echo +----------------------------------------------------------------+
set /p delfolder=- Enter path here: 
echo.
dir "%delfolder%"
if errorlevel = 1 goto error
rmdir /s "%delfolder%"
if errorlevel = 1 goto error
echo +----------------------------------------------------------------+
echo : Data folder deleted.                                           :
echo +----------------------------------------------------------------+
goto gbtm
 
:error
echo +----------------------------------------------------------------+
echo : An error has occured.                                          :
echo : Please make sure you typed the path the data folder correctly  :
echo +----------------------------------------------------------------+
echo.
goto gbtm
Viewed 1252 times, submitted by Akkarin.