blob: efef9cb39a4151bf2da5ff96fbd376b14d306dd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
@echo off
if .%1==. goto syntax
if exist wrong.spl del wrong.spl > nul
amspell.exe %1 wrong.spl alldicts.us @options.spl
if not exist learnspl.spl goto nothinglearned
copy learnspl.spl+correct.us > nul
amspell.exe learnspl.spl correct.us @sort.opt
del learnspl.spl > nul
:nothinglearned
if not exist wrong.spl goto nowrongspl
copy %1 backup.spl
copy wrong.spl %1 > nul
del wrong.spl > nul
cls
echo the backup of %1 is called BACKUP.SPL
goto end
:nowrongspl
cls
goto end
:syntax
echo Syntax: SPELL [filename]
echo example: SPELL myfile.tex
:end
|