- Joined
- Aug 16, 2005
- Messages
- 25,894 (3.79/day)
- Location
- Alabama
System Name | Rocinante |
---|---|
Processor | I9 14900KS |
Motherboard | EVGA z690 Dark KINGPIN (modded BIOS) |
Cooling | EK-AIO Elite 360 D-RGB |
Memory | 64GB Gskill Trident Z5 DDR5 6000 @6400 |
Video Card(s) | MSI SUPRIM Liquid X 4090 |
Storage | 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400 |
Display(s) | Odyssey OLED G9 G95SC |
Case | Lian Li o11 Evo Dynamic White |
Audio Device(s) | Moondrop S8's on Schiit Hel 2e |
Power Supply | Bequiet! Power Pro 12 1500w |
Mouse | Lamzu Atlantis mini (White) |
Keyboard | Monsgeek M3 Lavender, Akko Crystal Blues |
VR HMD | Quest 3 |
Software | Windows 11 |
Benchmark Scores | I dont have time for that. |
As a proof of concept im attempting to update a batch file by having it check for a new "version" currently this is the code I have but set /p seems to not work.
Currently I use a text file with the version number in it. Ideally it should check this number and then decide if the current version is good or not. Unfortunately CMD gets stuck at setting the version and does not try to continue to bits. I heard of a way to use delims but im uncertain how this would work. This is what I have now.
Currently I use a text file with the version number in it. Ideally it should check this number and then decide if the current version is good or not. Unfortunately CMD gets stuck at setting the version and does not try to continue to bits. I heard of a way to use delims but im uncertain how this would work. This is what I have now.
Code:
set /p version=1.9.2
bitsadmin /transfer ATLAS /download /priority high http://www.teamdotexe.org/Downloads/version.txt "%userprofile%\desktop\version.txt"
set /p nwstvrsn=<version.txt
set nwstvrsn=%nwstvrsn: =%
if %version% lss %nwstvrsn% goto newupdateavailable
if %version%==%nwstvrsn% goto noupdateavailable
:newupdateavailable
echo Downloading Update
bitsadmin /transfer ATLAS /download /priority high http://www.teamdotexe.org/Downloads/"ATLAS %nwstvrsn%.bat" "%userprofile%\desktop\"
:noupdateavailable
echo No Update Available