I have this simple bat file that I use for copying the files I'm working on to the folder it need to be fur production:
set targetFolder=C:\AppInstall\Blender\MyScripts\addons
set inputFiles[0]=convert_Rotation_Mode.py
:: set inputFiles[1]="example_file.ext"
:: set inputFiles[2]="example folder"
(for %%a in ("%inputFiles%") do (
xcopy /y /e %%a "%targetFolder%"
))
pause
It used to work, but not anymore.
Here's the console output:
>set targetFolder=C:\AppInstall\Blender\MyScripts\addons
>set inputFiles[0]=convert_Rotation_Mode.py
>(for %a in ("") do (xcopy /y /e %a "C:\AppInstall\Blender\MyScripts\addons" ) )
>(xcopy /y /e "" "C:\AppInstall\Blender\MyScripts\addons" )
Invalid drive specification
0 File(s) copied
>pause
Press any key to continue . . .
It looks like unputFile[0] doesn't work for some reason.
I also tried the following in the cmd:
>set a[0]=aaaa
>echo %a%
%a%