I Have a list of folders on DVD that I would like to process one at a time. I am trying to use a FOR command to pass through information to set as the variable in a 2nd batch file.
I am having the user input two variables, then I'd like a 3rd variable to come from my list of folders. Then run a 2nd batch file for each folder on the DVD:
echo enter Drive letter
set /p Drive=
echo enter diskname
set /p diskname=
FOR /F %%i IN ('dir /ad /b e:\') DO set book=%%i
call Load.bat %drive% %diskname% %book%
Then in my load.bat I have:
Set drive=%1
Set diskname=%2
Set book=%3
Copy %drive%\%book% \\server\%book%
The script will run fine on ONE folder on the DVD. How can I get this to loop through each folder?
Thanks!