However, it seems to be struggling with a single entry.
This is an abridged list of the games...
Code: Select all
Overwolf,D:\Program Files (x86)\Overwolf
Quake,I:\Program Files (x86)\Quake
AoE2DE,I:\Program Files (x86)\SteamLibrary2\steamapps\common\AoE2DE
Doom 64,I:\Program Files (x86)\SteamLibrary2\steamapps\common\Doom 64
Duke Nukem 3D,I:\Program Files (x86)\SteamLibrary2\steamapps\common\Duke Nukem 3D
GarrysMod,I:\Program Files (x86)\SteamLibrary2\steamapps\common\GarrysMod
Green Hell,I:\Program Files (x86)\SteamLibrary2\steamapps\common\Green Hell
Path of Exile,I:\Program Files (x86)\SteamLibrary2\steamapps\common\Path of Exile
We Went Back,I:\Program Files (x86)\SteamLibrary2\steamapps\common\We Went Back
Epic Games,D:\program files (x86)\Epic Games
Age2HD,E:\Program Files (x86)\Steam\steamapps\common\Age2HD
Counter-Strike Global Offensive,E:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive
dota 2 beta,E:\Program Files (x86)\Steam\steamapps\common\dota 2 beta
dota 2 test,E:\Program Files (x86)\Steam\steamapps\common\dota 2 test
Game Guru,E:\Program Files (x86)\Steam\steamapps\common\Game Guru
NBA 2K19,E:\Program Files (x86)\Steam\steamapps\common\NBA 2K19
PUBG,E:\Program Files (x86)\Steam\steamapps\common\PUBG
Rust,E:\Program Files (x86)\Steam\steamapps\common\Rust
Skyrim,E:\Program Files (x86)\Steam\steamapps\common\Skyrim
Skyrim Special Edition,E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition
Steamworks Shared,E:\Program Files (x86)\Steam\steamapps\common\Steamworks Shared
Underlords,E:\Program Files (x86)\Steam\steamapps\common\Underlords
Battle.net,D:\Program Files(x86)\Battle.net
Runescape,D:\Program Files\Jagex\RuneScape Launcher
Code: Select all
Echo Checking for Runescape
for /F "Usebackq Tokens=1* delims=," %%a in ("%SrcPath%\folders.txt") do IF /I "%%a"=="Runescape" set GamePath=%%b
IF "%GamePath%"=="" Echo Empty path returned for Runescape
Grabbing at straws, I even moved the entry higher in the list with no success.
I checked - there is no space at the end of the for line as this would cause it to fail.
Why would it fail only on this entry?