I need to move C:\Documents and Settings\Ryan-Laptop(user) to the new location without compromising any files.
Then do as Corion suggested and use
system q[xcopy /E /O /K C:\Documents and Settings\Ryan-Laptop(user) U: +\newName];
as any other method (including Win32::CopyFile()), will compromise the files by not copying their security attributes (ACLs etc.).
Read the help for xcopy to find out why /O is important. You might also want /X
In reply to Re: Moving folders to new directory location
by BrowserUk
in thread Moving folders to new directory location
by RaynMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |