-
Notifications
You must be signed in to change notification settings - Fork 0
/
01RUNME.bat
118 lines (118 loc) · 3.67 KB
/
01RUNME.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
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
@echo off
for /f %%z in ('cd') do set filelocation=%%z
break>"%filelocation%\chatlocation.txt"
break>"%filelocation%\exit.txt"
break>"%filelocation%\filelocation.txt"
echo %filelocation% 1>>"%filelocation%\filelocation.txt"
mode 50,20
set /p "newboolean=Do you want to use the Folder Path method? (y/n) "
if "%newboolean%"=="y" (goto startnew)
if "%newboolean%"=="n" (goto startold)
:startold
set /p "driveboolean=Are you using Drive File Stream? (y/n) "
if "%driveboolean%"=="y" (goto setup_googledrive)
if "%driveboolean%"=="n" (goto setup_networkdrive)
:setup_googledrive
echo Please note that in this mode, the software cannot
echo create a chat folder. You will have to make your
echo chat folder manually in the My Drive directory.
echo You will also have to create a text file in that
echo directory called chat.txt
set /p "folderpath=Enter File Stream drive letter: "
set /p "chatname=Enter chat folder path in quotations: "
if exist %folderpath%:\%chatname%\chat.txt (
cd /D %folderpath%:\%chatname%
goto prep_googledrive
) else (
echo The chat does not exist.
echo Please create the folder and text file in My Drive and try again.
goto setup_googledrive
)
:setup_networkdrive
set /p "folderpath=Enter Chat Drive Letter: "
set /p "chatname=Enter Chat Name: "
if exist %folderpath%:\%chatname% (
cd /D %folderpath%:\%chatname%
goto prep
) else (
echo creating new chat...
cd /D %folderpath%:\
mkdir %chatname%
cd %chatname%
break>"chat.txt"
goto prep
)
:prep
set /p "screenname=Enter Username: "
setlocal enabledelayedexpansion
(
echo !screenname! has entered the chat 1>>"chat.txt"
)
echo Welcome^^! Use /exit to leave the chat and /clear to clear history.
cd /D %filelocation%
setlocal enabledelayedexpansion
(
echo !folderpath!:\!chatname! 1>>"chatlocation.txt"
)
start cmd /C "%filelocation%\looping-realtime.bat"
cd /D %folderpath%:\%chatname%
goto chat
:chat
setlocal enabledelayedexpansion
(
set /p "message=Enter Message: "
echo !screenname!: !message! 1>>"chat.txt"
)
if "%message%"=="/exit" (
echo %screenname% has left the chat 1>>"chat.txt"
echo exit 1>>"%filelocation%\exit.txt"
exit
)
if "%message%"=="/clear" (
break>"chat.txt"
)
cls
goto chat
:prep_googledrive
set /p "screenname=Enter Username: "
setlocal enabledelayedexpansion
(
echo !screenname! has entered the chat 1>>"chat.txt"
)
echo Welcome^^! Use /exit to leave the chat and /clear to clear history.
echo Since you're using File Stream, you need to put in the
echo drive letter and path into the chat monitor program.
cd /D %filelocation%
start cmd /C "%filelocation%\looping-realtime-drive.bat"
cd /D %folderpath%:\%chatname%
goto chat
:startnew
echo Please note that in this mode, the software cannot
echo create a chat folder. You will have to make your
echo chat folder manually in the directory you use.
echo You will also have to create a text file in that
echo directory called chat.txt
set /p "folderpath=Enter drive letter: "
set /p "chatname=Enter chat folder path in quotations: "
if exist %folderpath%:\%chatname%\chat.txt (
cd /D %folderpath%:\%chatname%
goto prep_new
) else (
echo The chat does not exist.
echo Please create the folder and text file and try again.
pause
goto startnew
)
:prep_new
set /p "screenname=Enter Username: "
setlocal enabledelayedexpansion
(
echo !screenname! has entered the chat 1>>"chat.txt"
)
echo Welcome^^! Use /exit to leave the chat and /clear to clear history.
echo Since you're using the Folder Path method, you'll
echo need to put the chat path into the chat monitor program.
cd /D %filelocation%
start cmd /C "%filelocation%\looping-realtime-folderpath.bat"
cd /D %folderpath%:\%chatname%
goto chat