Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias cpu {
- write -c cmd.bat
- write -c cpu.txt
- write cmd.bat wmic cpu get loadpercentage > $+ $mircdir $+ cpu.txt
- run -n cmd.bat
- echo -at Please wait a sec...
- .timer 3 1 cpucheck
- }
- alias cpucheck {
- if ($lines(cpu.txt)) {
- echo -at CPU Usage: $+($read(cpu.txt, 2),%)
- write -c cpu.txt
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement