So I found a script I wanted to run on the rubber ducky but when I run it the first line in cmd does not get entered. It just moves onto the next line without finding what drive it is in. When I had type the same line into cmd it works fine. I think it may be becasue the ducky isnt hitting ENTER or something. Anyone know what is going wrong here. Ill post a picture, the top is when the rubber ducky runs it and the bottom is hand typing it in.
This is what I was trying to run:
STRING for /f %d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set duck=%d
DELAY 500
ENTER
?????