Check the below code
Code: Select all
Driveget, dlist, list
Loop, Parse, dlist
{
thisDrive=%A_LoopField%: ; <- this doesn't work, thisDrive is blank here
thisDrive = %A_LoopField%: ; <- works fine
thisDrive := A_LoopField ":" ; <- works fine
}
str = abcdef
test_var=%str%: ; <- this doesn't work either