hovercraft
Technical User
Sorry, I don't know where else to look for help on this.
I'm trying to use a bat file to copy a file into several directories and all of their sub directories. It works great until it hits a directory with a space in the name then it goes on to the next directory.
Any idea how I could change this line to consider spaces?
Thanks for your help!
Dave
I'm trying to use a bat file to copy a file into several directories and all of their sub directories. It works great until it hits a directory with a space in the name then it goes on to the next directory.
Any idea how I could change this line to consider spaces?
Code:
for /R %toptarget% %%i in (.) do (
copy %myfile% %%i
)
Thanks for your help!
Dave