|
Answer» Lets SAY I TYPE in
CODE: [Select]var
and it gives me
Code: [Select]Microsoft Windows [Version 6.0.6001]
Now how would I store that in a variable? Or is it that you can't store that in a variable. I've tried everything and I'm stuck with this. redirect to a file and read that file into a variable using for?FOR
Code: [Select]@echo off cls
for /f "delims=*" %%A in ('ver') do ( set something=%%A )
echo Version = %something% I was close. I GOT the for part right! Then I can just delete that file.. That works perfectly!
|