Tuesday, February 26, 2013 9:05 PM
I've seen similar but not exact questions.
I wish to copy a file (c:\pod.bat) to multiple user's roaming profile startup folder. (Z:\ALL FOLDERS HERE\AppData\Roaming\Windows\Start Menu\Porgrams\Startup)
I've been messing around with a for loop, but the syntax is new to me, and I don't think wildcards can be used in this situation to catch all the directories from "ALL FOLDERS HERE".
Tuesday, February 26, 2013 9:10 PMhave to do it this way due to lack of permissions, which we hope is temporary (6-12 months)
Tuesday, February 26, 2013 9:16 PM
Yes, wildcards can catch folders in combination with a loop:
for /d %a in (z:\*.*) do copy /y c:\pod.bat "%a\AppData\Roaming\..."
- Proposed As Answer by Bill_StewartMicrosoft Community Contributor, Moderator Tuesday, February 26, 2013 9:20 PM
- Marked As Answer by rwheelr Tuesday, February 26, 2013 9:57 PM
Wednesday, February 27, 2013 3:12 PM