dos copy in xp with script

  • Thread starter Thread starter Johan
  • Start date Start date
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
 
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)
 
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
 
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
 
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?
 
Back
Top