I have a text file containing file paths for files that I need to upload, ex:
F:\Folder\Sub\file.ext
I was able to find a script that puts all of the files into a destination folder, but I can't seem to modify it to wrap it in its containing folder. I tried the script I found here, but it doesn't seem to work or throw any errors, and I'm too green to figure it out without spending hours teaching myself. Hoping someone can help me modify the script I used
@Echo Off
cls
set dest=C:\filestoupload
set i=1
for /f %%f in (imfcheckmassaged.txt) do (
for /f "tokens=*" %%F in ('dir /S /B /A:-D "%%f"') Do (
xcopy /S/E "%%F" "%dest%"
)
)