将文件复制到所有文件夹批处理文件?

meo*_*hia 4 windows batch-file windows-7

我需要复制credits.jpg来自C:\Users\meotimdihia\Desktop\credits.jpgD:\Software\destinationfolder and all subfolders 我看了很多,我写

/R "D:\Software\destinationfolder" %%I IN (.) DO COPY "C:\Users\meotimdihia\Desktop\credits.jpg" "%%I\credits.jpg"
Run Code Online (Sandbox Code Playgroud)

然后我保存文件saveall.bat但我运行它,它根本不工作.帮我写一个蝙蝠

Bil*_*3rd 8

尝试一下:

for /r "D:\Software\destinationfolder" %i in (.) do @copy "C:\Users\meotimdihia\Desktop\credits.jpg" "%i"
Run Code Online (Sandbox Code Playgroud)

当然,如果要进入批处理文件,请加倍'%'.