-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-memhawk.bat
More file actions
35 lines (33 loc) · 970 Bytes
/
start-memhawk.bat
File metadata and controls
35 lines (33 loc) · 970 Bytes
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
@echo off
echo ========================================
echo MemHawk - Memory Forensics Tool
echo Authors: Adriteyo Das, Anvita Warjri, Shivam Lahoty
echo ========================================
echo.
REM Check if Node.js is installed
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Node.js is not installed or not in PATH
echo Please install Node.js 16.x or later from https://nodejs.org
pause
exit /b 1
)
REM Check if npm is available
npm --version >nul 2>&1
if %errorlevel% equ 0 (
echo Found npm, starting MemHawk...
npm start
) else (
echo npm command not found, trying npm.cmd...
npm.cmd --version >nul 2>&1
if %errorlevel% equ 0 (
echo Found npm.cmd, starting MemHawk...
npm.cmd start
) else (
echo Error: npm not found
echo Please reinstall Node.js from https://nodejs.org
echo Make sure to include npm in the installation
pause
exit /b 1
)
)