@echo off set head="C:\\Users\\ set user=%USERNAME% set tail=\\AppData\\Roaming\\Adobe\\After Effects\\22.2\\Scripts\\ScriptUI Panels" set path=%head%%user%%tail% if Exist %path% echo 1 if not Exist %path% mkdir %path%