Have you tried right clicking and choosing Run as administrator? You can't
write to the Program Files folder tree in Vista without elevating your
privileges.
--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca/phpBB2/
"ToddAndMargo" <> wrote in message
news:...
> Hi All,
>
> This script works fine in w2k-pro and XP (both),
> but not in Vista. Why and how do I fix it?
>
> Many thanks,
> -T
>
> @echo off
>
>
> set Target=C:\Program Files\Mozilla Firefox\searchplugins
> if not exist "%Target%" goto Error
>
> attrib -r "%Target%\*.*"
> xcopy "SearchPlugins\*.*" "%Target%\." /Y
> attrib -r "%Target%\*.*"
> Goto end
>
>
> :Error
> echo Unable to locate
> echo %Target%
> pause
> goto end
>
> :end