Script to copy roaming profile folder on exit

  • Thread starter Thread starter Davey
  • Start date Start date
D

Davey

Guest
I have an app that writes to Local Settings on the user profile - this
location cannot be changed by the app vendor

Local settings is excluded by default from the roaming profile

So i want a script to run at logoff to copy Local Settings from the user
profile back to the roaming profile

I have tried this but it just hangs when the user logs off

xcopy "c:\documents and settings\%username%\local settings"
\\servername\Profileshare\%username%\local settings /r /s /e /c /h /y /i

Any ideas out there guys ?!
 
Re: Script to copy roaming profile folder on exit

Davey <Davey@discussions.microsoft.com> wrote:
> I have an app that writes to Local Settings on the user profile - this
> location cannot be changed by the app vendor
>
> Local settings is excluded by default from the roaming profile
>
> So i want a script to run at logoff to copy Local Settings from the
> user profile back to the roaming profile
>
> I have tried this but it just hangs when the user logs off
>
> xcopy "c:\documents and settings\%username%\local settings"
> \\servername\Profileshare\%username%\local settings /r /s /e /c /h /y
> /i
>
> Any ideas out there guys ?!


Hi - you're also posting as "groundhog," correct? If so, no need to start a
new thread - you have a 'live' one going already. Also, for future
reference, microsoft.public.windows.server.scripting is a better group for
questions like this. None of this really has to do with TS at all.

That said, what I immediately noticed is that you don't have double quotes
around \\servername\Profileshare\%username%\local settings (any time there's
a space you need double quotes). You might try changing that & see if it
works. I don't use xcopy; I prefer robocopy from the resource kit, so I
don't know whether your parameters are correct, though.
 
Back
Top