-
Notifications
You must be signed in to change notification settings - Fork 0
/
BatchEditor.bat
66 lines (53 loc) · 1.01 KB
/
BatchEditor.bat
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
@echo off
@REM This is a OS(Open Source) application made by @GhalbeYou. It is not going to be sold or anything.
@REM GitHub: https://github.com/ghalbeyou/batcheditor
cls
@rem main sets
set editing=0
set file=none
set path=none
cd core
call config.bat
cd ..
:main
if not exist lic goto :license
if "%1"=="o" (
goto :open_file
)
goto :hub
:license
cd core
call license.bat
cd ..
exit
:open_file
cls
@rem set file directory
set path=%2
@rem set file name
set file=%3
cd core
call edit.bat
cd ..
echo.
echo.
echo [@] [ANY KEY] [#-#] [INSTANT QUIT]
pause > nul
exit
:hub
title Batch Editor - Hub
cls
echo In order to start coding, open the program in this way:
echo %0 o To/Path File.EXT
echo.
echo [!] "To/Path" must be a valid path to the directory of the file and "File.EXT" should be a valid file name.
echo [#] Example:
echo.
echo [$] %0 o E:\Code package.json
echo.
echo [!] Remember that there should be a space between "To/Path" and "File.EXT".
echo.
echo.
echo [@] [ANY KEY] [#-#] [INSTANT QUIT]
pause > nul
exit