Solved Batching Coding for a Counter

October 31, 2012 at 07:59:10
Specs: Windows XP
Is it possible to make a counter set to go up every so many seconds? Also is it possible to add a money sign to it? I have always wanted to make one, but I have no idea where to start.

See More: Batching Coding for a Counter

Report •

October 31, 2012 at 08:05:06
✔ Best Answer
This increases the counter by 1 every 1 second
@echo off & setlocal enabledelayedexpansion
set counter=1
echo.wscript.sleep 990> %tmp%\interval.vbs
set /A counter +=1
start /w wscript.exe %tmp%\interval.vbs
Goto :LOOP
Or, if it's a game your working on you'd need to create a separate script to do the checking per x seconds, then the main window parses the variable from the config file.

Report •
Related Solutions

Ask Question