-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ps1
41 lines (36 loc) · 1.52 KB
/
test.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
New-Item "TimeOfProcesses.txt" -Force
echo "working 1"
Add-Content .\TimeOfProcesses.txt "P1 Start"
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "--------"
Wait-Event -Timeout 5
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "P1 End"
echo "working 2"
Add-Content .\TimeOfProcesses.txt "P2 Start"
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "--------"
Wait-Event -Timeout 5
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "P2 End"
echo "working 3"
Add-Content .\TimeOfProcesses.txt "P3 Start"
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "--------"
Wait-Event -Timeout 5
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "P3 End"
echo "working 4"
Add-Content .\TimeOfProcesses.txt "P4 Start"
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "--------"
Wait-Event -Timeout 5
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "P4 End"
echo "working 5"
Add-Content .\TimeOfProcesses.txt "P5 Start"
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "--------"
Wait-Event -Timeout 5
Add-Content .\TimeOfProcesses.txt (Get-Date -Format "HH:mm")
Add-Content .\TimeOfProcesses.txt "P5 End"