Hello dear people,
For a while i am working on a batch chat over LAN.
It is fully working, now i am just messing around with the fine tuning.
I got it so far to change the color in the main screen and in the chat reader screen,
i now want to be able to adjust the refresh speed of the reader screen (as i must be working with 2 batch scripts for this chat thingy).
and i want it to be done simply as: /refresh {seconds}
the thing is, i need to output the seconds, and not the /refresh, so how do i get only the seconds to write to a file?
i can recall something with trim but i'm not sure about that.
trim or something? [solved]
Moderator: DosItHelp
Re: trim or something? [solved]
If you need parameter parsing, and you don't have poison charactersm then this may help you:
penpen
Code: Select all
set "secs=%*"
set "secs=%secs:*/refresh=%"
for /F %%a in ("%secs%") do set "secs=%%a"
penpen