From 18f96ba3a6c34fdcbe8a070e7d21437d15c05ba6 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Fri, 27 Oct 2023 17:38:13 +0200 Subject: [PATCH] Add batch for alive process --- README.md | 1 + alive.bat | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 alive.bat diff --git a/README.md b/README.md index 2c705c7..1440ab4 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,4 @@ This repository contains small scripts to run NirCmd on Windows systems, to move ### Scripts * `alive.sh` is a Shell script which calls NirCmd to move the cursor every 30 seconds. * `alive.ps1` is a PowerShell script which calls NirCmd to move the cursor every 30 seconds. +* `alive.bat` is an MS-DOS batch which calls NirCmd to move the cursor every 30 seconds. diff --git a/alive.bat b/alive.bat new file mode 100644 index 0000000..e83dd5d --- /dev/null +++ b/alive.bat @@ -0,0 +1,6 @@ +@echo off +:loop + nircmd.exe movecursor 1 1 + nircmd.exe movecursor -1 -1 + TIMEOUT 30 +GOTO :loop