I founda way around this by using the start command with Outlook command line switch. (there may be needless wrapping) ------------------------- rem @echo off ECHO Generating Outlook Profile IF "%USERNAME%" == "Administrator" GOTO END IF EXIST H:\Windows\outlook.prf GOTO END copy %LOGONSERVER%\NETLOGON\outlook.prf H:\windows\outlook.prf start "C:\Program Files\Microsoft Office\Office10\outlook.exe" /importPRF "H:\windows\outlook.prf" :end ------------------------- I hope this helps. Michael Saul --- "Barnes, Kim" <Kim.Barnes@xxxxxxxxxx> wrote: > Is anyone using the Office XP Profile Generator? > PRF files are now > executables in Outlook XP. I need the PRF file to > execute the first time a > user logs in. I don't want it to execute anytime > after because I don't want > the PRF file to overwrite any customizations they > may have made in Outlook. > I've accomplished this in a script file. The script > file does the > following: > > Checks to see if the outlook.prf file exists in the > user's profile > directory. > If it does not exist (then this is a new user), copy > the outlook.prf file to > the user's profile directory. > Execute the outlook.prf file, which launches > Outlook. > If it does exist, then it is not a new user so it > exits the script. > > The following is my script file: > > IF EXIST "%userprofile%\outlookxp.prf" goto end > copy M:\winnt\profgen\outlookxp.prf > "%userprofile%\outlookxp.prf" > M:\winnt\profgen\outlookxp.prf > > :end > > The problem is that since I have this in a script, > when it runs the line > M:\winnt\profgen\outlookxp.prf it launches outlook > and the script thinks > it's still running. So cmd.exe is still running in > the background. How do > I get the script to end?? > > Thanks, > Kim Barnes > Server Administrator > TTI, Inc. > 817-740-9000 > kim.barnes@xxxxxxxxxx __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com *********************************************** This Weeks Sponsor: WM Software WMS Messenger for TSE Affordable Instant Messaging for Terminal Servers http://www.wmsoftware.com/wmsm/ ************************************************ For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm