[solved] Set file size as Variable
Posted: 08 Nov 2013 02:54
Hello again peepz ^^
i am still fine-tuning my LAN chat, what i got as refresh in the reader is nothing more then a
but this makes the chat sort of blink what can be quiet annoying when working with 2 screens and the blinking chat at the second screen.
So i has this idea to make the reader check the size of the chat.txt, let it set as a variable, something like this:
i have no idea if this is possible, but if it is then it would be perfect ^_^
lemme know if you has any idea :3
i am still fine-tuning my LAN chat, what i got as refresh in the reader is nothing more then a
Code: Select all
ping loacalhost -n 2 >NUL
but this makes the chat sort of blink what can be quiet annoying when working with 2 screens and the blinking chat at the second screen.
So i has this idea to make the reader check the size of the chat.txt, let it set as a variable, something like this:
Code: Select all
:set
set size=[file size thingy]
goto check
:check
if %size%==[file size thingy] goto refresh
if not %size%==[file size thingy] ping localhost -n 2 >NUL
goto check
:refresh
cls
type chat.txt
goto set
i have no idea if this is possible, but if it is then it would be perfect ^_^
lemme know if you has any idea :3