dos copy in xp with script

J

Johan

Hello!

Anyone that know how to copy an folder like default user in documents and
settings folder and keep folder structure
and attributes from another place in a cmd line environment?

Have not found a good tool to make it working. I'm trying to make a unattend
cd with a cutomized default folder.
Have tried xcopy,copy and even tried to delete the whole structure and
replace it - with no luck.
The result is a shopped structure c:\docume~1\defaul~1
and in the start\program menu it's also shopped... not good looking at all

please help, everything else is working great except this little annoying
thing!

/Johan
 
T

Torgeir Bakken (MVP)

Johan said:
Anyone that know how to copy an folder like default user in documents and
settings folder and keep folder structure
and attributes from another place in a cmd line environment?

Have not found a good tool to make it working. I'm trying to make a unattend
cd with a cutomized default folder.
Have tried xcopy,copy and even tried to delete the whole structure and
replace it - with no luck.
The result is a shopped structure c:\docume~1\defaul~1
and in the start\program menu it's also shopped... not good looking at all

Hi

See if Robocopy.exe in the free Windows Server 2003 Resource Kit works better.

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later)
 
R

Randy Harris

Johan said:
Hello!

Anyone that know how to copy an folder like default user in documents and
settings folder and keep folder structure
and attributes from another place in a cmd line environment?

Have not found a good tool to make it working. I'm trying to make a unattend
cd with a cutomized default folder.
Have tried xcopy,copy and even tried to delete the whole structure and
replace it - with no luck.
The result is a shopped structure c:\docume~1\defaul~1
and in the start\program menu it's also shopped... not good looking at all

please help, everything else is working great except this little annoying
thing!

/Johan

I just tried:

xcopy /ECH "c:\Documents and Settings\Default User" .

it reproduced the directory structure exactly.

RH
 
R

Russell

I just tried copying it using

xcopy "d:\documents and settings\default
user" "C:\documents and settings\Default user" /E /K

and everything copied okay
 
T

Torgeir Bakken (MVP)

Johan said:
Anyone that know how to copy an folder like default user in documents and
settings folder and keep folder structure
and attributes from another place in a cmd line environment?

Have not found a good tool to make it working. I'm trying to make a unattend
cd with a cutomized default folder.
Have tried xcopy,copy and even tried to delete the whole structure and
replace it - with no luck.
The result is a shopped structure c:\docume~1\defaul~1
and in the start\program menu it's also shopped... not good looking at all

Hi

You do use cmd.exe and not command.com?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top