Hi there, I'm pretty new to all this, so please don't hit me if this question is too simple I want to run xcopy via autoit and the variable has to be a part of the path from which to copy the files from... RunWait("xcopy C:\test\all\all " & $Variable1 & $Variable2 & "/e /y /r") RunWait("xcopy 'C:\test\' & $Variable3 & '\' & $Variable4 & " & $Variable1 & $Variable2 & "/e /y /r") The first code is working so I don't think that anything is amiss