How to improve the logon.bat

  • Thread starter Thread starter Franklin hong
  • Start date Start date
F

Franklin hong

Dear guys,
Working problem, below is the logon.bat in for a domain user when he or she log on XP:
-------------------------------------------------------------------------------------------------------------------------
@echo off
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites /t reg_sz /d "d:\%username%\my documents\favorites" /f >nul
md "d:\my documents\%username%\favorites"
xcopy "C:\Documents and Settings\Default User\Favorites" "d:\%username%\my documents\favorites" /s/e /y >nul
Cacls "%userprofile%\Desktop" /t /c /p everyone:r
 
Back
Top