The path has spaces or special characters. Fix: Ensure your USB drive's root folder has no spaces (e.g., not F:\My Arduino IDE ). Use F:\ArduinoIDE2 .
echo Launching Arduino IDE 2.x in PORTABLE mode... "%IDE_PATH%" --portable arduino ide 2 portable