sweept Posted February 2, 2012 Share Posted February 2, 2012 (edited) I'm trying to make this batch work for medir /b /ad-h "%HOMEDrive%%HOMEPATH%\..\" >all.txtfor /f "tokens=* delims=" %%F in (all.txt) do FOR /f %%i IN ('dir /b /a-d "%HOMEDrive%%HOMEPATH%\..\%%F\My Documents\My RoboForm Data\Default Profile\"') DO 7za a "roboform_data_for_%%F" "%HOMEDrive%%HOMEPATH%\..\%%F\My Documents\My RoboForm Data\Default Profile\%%i"(later in the batch I turn the 7za's to silent exe's install for each user found..)I only seem to get the current user to work with this cannot get other users like for instance the administrator's onethe dir is in order meaning i got same structure & files at both pathswhy wont it read the administrators files in path or for other users in case or "all users"BTW couldn't get all.txt to read "Default User" as its hidden perhapsthanks Edited February 2, 2012 by sweept Link to comment Share on other sites More sharing options...
Yzöwl Posted February 2, 2012 Share Posted February 2, 2012 I'm trying to make this batch work for medir /b /ad-h <snip />BTW couldn't get all.txt to read "Default User" as its hidden perhapsIf you exclude -hidden directories then it will not see the hidden Default User directory. Link to comment Share on other sites More sharing options...
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