home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / prfres.zip / PROFILE.CMD < prev    next >
OS/2 REXX Batch file  |  1993-06-15  |  807b  |  27 lines

  1. @ECHO OFF
  2. SET userid=any_user_you_like_preferrably_YOU
  3. SET dom_ctrl=your_domain_controller
  4. SET exe_dir=location_of_PrfReset.EXE_with_X_access_right_for_userid
  5. REM
  6. REM   Sample usage of PrfReset.EXE in a LAN Server environment
  7. REM
  8. REM   Place this file in the \IBMLAN\DCDB\USERS\userid directory
  9. REM   on your domain controller (name : PROFILE.CMD).
  10. REM
  11. REM   Change the above SET statements to match your environment.
  12. REM
  13. REM   Copy a user profile (you may use MAKEINI.EXE) to
  14. REM   \IBMLAN\DCDB\USERS\userid\userid.INI
  15. REM
  16. if NOT exist C:\%userid%.INI copy \\%dom_ctrl%\IBMLAN$\DCDB\USERS\%userid%\%userid%.INI C:\
  17. if exist C:\%userid%.INI goto DO_RESET
  18. ECHO.
  19. ECHO  Sorry, personal INI copy failed.
  20. ECHO.
  21. PAUSE
  22. goto END
  23. :DO_RESET
  24. %exe_dir%\PrfReset C:\%userid%.INI
  25. goto END
  26. :END
  27.