Jump to content

Recommended Posts

Posted

Has any one done this ?

 

Our current setup is this \server\share\user

 

To comply with windows 7 and desktop.ini i need to do the following

 

Create a folder here \server\share\user\My Documents

 

And move the contents of \server\share\user to \server\share\user\My Documents

 

I mostly have this working with with powershell , only problem im having is moving files that have invalid characters such as [] and ' . the script basically says the files do not exist, but obviously they do :(

 

Thanks

Luke

Posted

This is something that I keep planning to do at some point too.

 

Can you use robocopy to move the files? I find it'll move anything.

 

Meldrew.

Posted

Indeed , used powershell to create the my documents folders

 

Then modified the robocopy method on here, great stuff :D

Posted

I use:

 

for /d %%Y in (Sta??) do (for /f "usebackq tokens=*" %%U in (`dir /b /ad "%%~Y\*"`) do (robocopy "%%~Y\%%~U" "%%~Y\%%~U\Documents" /e /move /xd "Documents"))

 

Where the (Sta??) bit is the folder name with your user areas in.

 

So we use d:\users\Staff. I would copy batch file to d:\users and run

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...