NightsEvil
Member
- Joined
- May 1, 2010
- Messages
- 10
- Programming Experience
- Beginner
hey all new here and to VB im working with VB 2010 express and i have this batch file with a function in it that i just LOVE! but i cant seem to find a equivalent in vb any ideas?? what my idea is that when the application is launched, it displays the OS in a textbox near the top of the form, under (or near) it would display the real time system time, ram, cpu speed, and Graphics card kinda how Ccleaner does, then there would be a button that says optimize when clicked it would do this kinda batch thing:
VER | findstr /i "5\.1\." > nul
IF %ERRORLEVEL% EQU 0 set version=XP
VER | findstr /i "6\.0\." > nul
IF %ERRORLEVEL% EQU 0 set version=Vista
VER | findstr /i "6\.1\." > nul
IF %ERRORLEVEL% EQU 0 set version=7
goto %version%
:xp
does this stuff if the os is xp
:vista
does this stuff if the os is vista
:7
does this stuff if the os is 7
then when that is all done (maybe some kinda progress bar or something to show its working) the button text would change to UnOptimize or something like that... can ya help a noobie out? =P
VER | findstr /i "5\.1\." > nul
IF %ERRORLEVEL% EQU 0 set version=XP
VER | findstr /i "6\.0\." > nul
IF %ERRORLEVEL% EQU 0 set version=Vista
VER | findstr /i "6\.1\." > nul
IF %ERRORLEVEL% EQU 0 set version=7
goto %version%
:xp
does this stuff if the os is xp
:vista
does this stuff if the os is vista
:7
does this stuff if the os is 7
then when that is all done (maybe some kinda progress bar or something to show its working) the button text would change to UnOptimize or something like that... can ya help a noobie out? =P