-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathezNodeInject.bat
More file actions
53 lines (49 loc) · 1.03 KB
/
Copy pathezNodeInject.bat
File metadata and controls
53 lines (49 loc) · 1.03 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
53
@echo off
title ezNodeInject
set dataPath="%localappdata%\ezNodeInject.dat"
if exist %dataPath% goto starttwo
:start
cls
echo Set node js folder path
set /p path=
echo %path%> %dataPath%
echo Set the js path to "%path%"
pause
goto starttwo
:starttwo
cls
echo Select an option.
echo 1. run a JS file
echo 2. temp set path but run a js file
echo 3. change path completely
set /p option=
if %option% == 1 goto runJSFile
if %option% == 2 goto tempJSFile
if %option% == 3 goto start
echo need help? Type a number of the actions.
pause
goto starttwo
:tempJSFile
cls
echo Type the path of the JS File you want to run.
set /p epicPath=
@echo on
node "%epicPath%"
@echo off
echo Program finished
pause
goto starttwo
:runJSFile
(
set /p dataLoaded=
) < %dataPath%
cls
echo Type the path of the JS File you want to run.
echo (Not the full path, but the current path you wrote + the name of the js file)
set /p epicPath=
@echo off
node "%dataLoaded%\%epicPath%"
@echo off
echo Program finished
pause
goto starttwo