|
Answer» To all:
First-timer, here. Hope you can help me look good for my boss.
We want to create a batch file that searchs all the profiles on a workstation (in c:\documents and settings). And, if it ever finds a file named VersionA.exe, we want to replace it with a file named VersionB.exe.
Any hints/tips? All help WOULD be greatly appreciated. Thx in advance, - Cliff
p.s. I did "search" this forum. Is there, by chance, a library of some .bat files I can explore. I love DISSECTING examples.Code: [Select]for /d %%a in ("c:\documents and settings\*") do ( if exist %%a\versionA.exe copy path\versionB.exe %%a\versionA.exe )
You'll NEED to replace path with something meaningful. I'm not sure you can get into other user's accounts, but that's a whole other animal.
Good luck. 8-)
|