Server: Windows 2000 and 2003; clients: Windows 2000 Pro and XP Pro
I am writing a batch file to copy a *.pst file from user machines to the server upon user logoff.
The location of the *.pst file will be the same for each profile of each user on their local computers (the pst files are for OL2003 and can't be on the server-performance issues). I don't know how to put wildcards or variables in. I don't want to have to write a batch file for each user - I want one file that works for all.
Here is what I have so far. Where I have put <variable> are the places where I need wildcards/variables:
xcopy /e /v /y \\<variable-computer name>\c$\documents and settings\<variable-profilename>\local settings\application data\microsoft\outlook\<variable.pst> \\serverv\users\<variable-user name>\outlook_backup
On some of my machines I have more than one profile with a *.pst file to be copied. I want it to basically check all profiles and copy them
What are the variables or wildcards I could use so that I can write one batch file that would work for all users? The file will be placed in domain policy/user configuration/log off on my 2000 or 2003 servers.
Thanks, everyone -