set /p filename=Customer Data
set alldrive=f
for %%i in (%alldrive%) do if exist %%i:\ dir /b %%i:| find "%filename%"
move %filename% e:\win
pause
The original idea was to search for Customer Data under all drive letters and then MOVE it to the e:\win folder, but I found there was a problem so I changed it to search only f:
But after changing it to f:, it still doesn't work
set alldrive=f
for %%i in (%alldrive%) do if exist %%i:\ dir /b %%i:| find "%filename%"
move %filename% e:\win
pause
The original idea was to search for Customer Data under all drive letters and then MOVE it to the e:\win folder, but I found there was a problem so I changed it to search only f:
But after changing it to f:, it still doesn't work

