Re: script to copy user profile!!
- From: "Marty List" <usenet@xxxxxxxxxxxx>
- Date: Fri, 20 Apr 2007 20:19:36 -0600
You should always enclose file paths in double quotes, in case it contains spaces:
Copy "%userprofile%\desktop\*.*" "c:\profile\desktop\"
Also, consider using XCopy:
xcopy /?
<snip>
/S Copies directories and subdirectories except empty ones.
/H Copies hidden and system files also.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
<snip>
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message news:1177108255.074204.174950@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hello everyone,
i am migrating users from one domain to another and have decided to
manually copy user local profiles to new domain. im using admt to
migrate user accounts only to new domain nothing else..i have created
a script pasted below. when i run this script it makes all relevent
directories but dosn't copy any contents from user's directories.
whats missing help!!
thanks in advance.
@Echo on
C:
Cd\
MD Profile
CD Profile
MD PST
MD Favorites
MD Desktop
MD Docs
MD Cookie
Copy %userprofile%\desktop\*.* c:\profile\desktop\
Copy %userprofile%\Favorites\*.* c:\profile\Favorites\
Copy %userprofile%\local settings\application data\microsoft\outlook
\*.pst c:\profile\pst\
Copy %userprofile%\cookies\*.* c:\profile\cookies\
.
- Follow-Ups:
- Re: script to copy user profile!!
- From: mcp
- Re: script to copy user profile!!
- References:
- script to copy user profile!!
- From: mcp
- script to copy user profile!!
- Prev by Date: Re: Copy File to user's profile
- Next by Date: Re: script to copy user profile!!
- Previous by thread: script to copy user profile!!
- Next by thread: Re: script to copy user profile!!
- Index(es):
Relevant Pages
|