Initial revision
[emacs.git] / nt / emacs.bat.in
blob72304a893670a327dbdd10cc4ef96f8b64566099
2 REM Here begins emacs.bat.in
4 REM Set OS specific values.
5 set ARCH_SAVE=%PROCESSOR_ARCHITECTURE%
6 set PROCESSOR_ARCHITECTURE=
7 if "%ARCH_SAVE%" == "%PROCESSOR_ARCHITECTURE%" goto win95
8 set PROCESSOR_ARCHITECTURE=%ARCH_SAVE%
9 set SHELL=cmd
10 goto next
12 :win95
13 set SHELL=command
15 :next
17 set EMACSLOADPATH=%emacs_dir%\lisp
18 set EMACSDATA=%emacs_dir%\etc
19 set EMACSPATH=%emacs_dir%\bin
20 set EMACSLOCKDIR=%emacs_dir%\lock
21 set INFOPATH=%emacs_dir%\info
22 set EMACSDOC=%emacs_dir%\etc
23 set TERM=CMD
25 REM The variable HOME is used to find the startup file, ~\_emacs. Ideally,
26 REM this will not be set in this file but should already be set before
27 REM this file is invoked. If HOME is not set, use some generic default.
29 set HOME_SAVE=%HOME%
30 set HOME_EXISTS=yes
31 set HOME_DEFAULT=C:\
32 set HOME=
33 if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no
34 if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%
35 if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%
36 if "%HOME_EXISTS%" == "no" echo HOME is not set! Using %HOME% as a default...
38 %emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9