I am using the following to iterate over files in a directory...
(FOR %%F IN (%ROOT%\%VERSION%\*.*) DO (
When I run this code I get an Access Denied error message, but if I replace '%ROOT%\%VERSION%\*.*' with 'C:\1\*.*' then things work. It is something about the variable substitution I guess but I cant figure out what? Any ideas?