2097 Posted August 17, 2015 Posted August 17, 2015 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
Meldrew Posted August 17, 2015 Posted August 17, 2015 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.
2097 Posted August 18, 2015 Author Posted August 18, 2015 Indeed , used powershell to create the my documents folders Then modified the robocopy method on here, great stuff
snagrat Posted August 18, 2015 Posted August 18, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now