-
Notifications
You must be signed in to change notification settings - Fork 2
/
putzdienst.ps1
67 lines (34 loc) · 1.29 KB
/
putzdienst.ps1
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
#set this code as usercommand in texstudio:
# powershell "& ""C:/pfad/putzdienst.ps1"" "
function Get-ScriptDirectory{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
$path = (Get-ScriptDirectory)
cd $path
remove-item *.log |% {remove-item $_}
get-childitem *.toc |% {remove-item $_}
get-childitem *.gz |% {remove-item $_}
get-childitem *.aux |% {remove-item $_}
get-childitem *.nav |% {remove-item $_}
get-childitem *.out |% {remove-item $_}
get-childitem *.synctex |% {remove-item $_}
get-childitem *.synctex.gz |% {remove-item $_}
get-childitem *.tmp |% {remove-item $_}
get-childitem *.4ct |% {remove-item $_}
get-childitem *.4tc |% {remove-item $_}
get-childitem *.anl |% {remove-item $_}
get-childitem *.lg |% {remove-item $_}
get-childitem *.idv |% {remove-item $_}
get-childitem *.xref |% {remove-item $_}
get-childitem *.bbl |% {remove-item $_}
get-childitem *.blg |% {remove-item $_}
get-childitem *.equ |% {remove-item $_}
get-childitem *.idx |% {remove-item $_}
get-childitem *.lof |% {remove-item $_}
get-childitem *.lot |% {remove-item $_}
get-childitem *.ptc |% {remove-item $_}
get-childitem *.tdo |% {remove-item $_}
get-childitem *.xml |% {remove-item $_}
get-childitem BA-blx.bib |% {remove-item $_}
exit