-
Notifications
You must be signed in to change notification settings - Fork 36
/
sizzle.cmd
88 lines (69 loc) · 1.84 KB
/
sizzle.cmd
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
@echo off
REM ///////////////////////////////////////////////////////////////////////////
REM sizzle.cmd
REM ///////////////////////////////////////////////////////////////////////////
REM //
REM // Verify sizzle environment variables
REM //
REM // SIZ_REPONAME
if [%SIZ_REPONAME%] equ [] (
echo SIZ_REPONAME environment variable is not set.
goto End
)
REM // SIZ_NTROOT
if [%SIZ_NTROOT%] equ [] (
echo SIZ_NTROOT environment variable is not set.
goto End
)
REM // SIZ_NTTREE
if [%SIZ_NTTREE%] equ [] (
echo SIZ_NTTREE environment variable is not set.
goto End
)
REM // SIZ_NTARCH
if [%SIZ_NTARCH%] equ [] (
echo SIZ_NTARCH environment variable is not set.
goto End
)
REM // SIZ_NTBLD
if [%SIZ_NTBLD%] equ [] (
echo SIZ_NTBLD environment variable is not set.
goto End
)
REM //
REM // Launch command window.
REM //
if not [%1] equ [cmdwindow] (
start cmd /k sizzle.cmd cmdwindow
goto End
)
REM //
REM // Print logo.
REM //
echo.
echo ____ _ ________ ____ _ __
echo / __ \____ ___ ____ / ^| / /_ __/ / __ \_________ (_)__ _____/ /_
echo / / / / __ \/ _ \/ __ \/ ^|/ / / / / /_/ / ___/ __ \ / / _ \/ ___/ __/
echo / /_/ / /_/ / __/ / / / /^| / / / / ____/ / / /_/ / / / __/ /__/ /_
echo \____/ .___/\___/_/ /_/_/ ^|_/ /_/ /_/ /_/ \____/_/ /\___/\___/\__/
echo /_/ /___/
echo.
echo.
REM //
REM // Call ntenv.cmd.
REM //
call ntenv.cmd %SIZ_REPONAME% %SIZ_NTROOT% %SIZ_NTTREE% %SIZ_NTARCH% %SIZ_NTBLD%
echo.
REM //
REM // Set window and prompt style.
REM //
title NTOSBE: %NTTARGET% [%NTROOT%]
prompt [%COMPUTERNAME%: %USERNAME% // %NTTARGET%] $d$s$t$_$p$_$_$+$g
REM //
REM // Change directory to NTROOT.
REM //
cd /d %NTROOT%
REM //
REM // End
REM //
:End