Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Filtering folders inside My Documents folder

20 Jan 2014   #1

Windows 7 Professional x86
 
 
Filtering folders inside My Documents folder

Hi, this is my first post here. My name is Renato Lazzari, I'm a brazilian 55 y.o. guy.

I'd like to save the files in drive C: to drive D:. I have only one user, Administrator. In My Documents folder there are folders for me and for my two sons and inside our folders anothers folders and folders insider folders, and inside eacho folder, files.

I created an automatic back routine, a batch file, and it always report me extra files, but I'm sure there's not an extra file. I know this because of a check I do after running the command, testing the command's exit code. Instead of returning errorlevel 0 (everything ok), the first ROBOCOPY command returns 2 (extra files) and do it everytime it runs, giving a message that alerts us there is new or modified files. I guess these files aren't showed in the report generated by ROBOCOPY because of a parameter, "/xx", I adopted to try not to copy extra files...

Now, taking a look inside the copy of the backup folders I discovered three extra folders: My Videos, My Pictures and My Music. These folders are empty in the backup drive and I only can view this when I set folders properties to show system and hidden files. In the source drive these folders are unable to be accessed. In the target drive these folders are "uneraseable", "untouchedable"... I know this is just a little detail but hope this could be useful for me and for other people.

Well... can I filters these folders, My Videos, My Pictures and My Music with some parameter? I'd like to backup only the folders we create.

Thanks!

P.S.: Some words may be wrong because I use a Brazilian Portuguese Windows version. I'm not sure the English version actually is "My Videos", for example. For me it's "Meus vídeos". The backup batch file I've created, called from GPEDIT.MSC / User Settings / Windows Settings / Scripts (LOGON/LOGOFF) is:




@echo off
set agora=%date% as %time%

echo Relatorio de backup > d:\logs\bkplst.txt
echo >> d:\logs\bkplst.txt
echo inicio: %agora% >> d:\logs\bkplst.txt

echo Relatorio de backup > d:\logs\bkpmsg.txt
echo >> d:\logs\bkpmsg.txt
echo inicio: %agora% >> d:\logs\bkpmsg.txt

set copiou=A

robocopy "C:\Users\Administrador\Documents" "D:\backup\docs" /s /e /copyall /xx /xa:s /xa:h /NS /NP /NDL /NJH /NJS /LOG:d:\logs\relarqs.txt
if %errorlevel% EQU 0 goto seg01
set copiou=B

:seg01
robocopy "C:\Users\Administrador\AppData\Roaming\Microsoft\FS9" "D:\backup\sets\FS9" /s /e /xx /copyall /xa:s /xa:h /NS /NP /NDL /NJH /NJS /LOG+:d:\logs\relarqs.txt
if %errorlevel% EQU 0 goto seg02
set copiou=B

:seg02
robocopy "C:\Program Files\MyDefrag v4.3.1\Scripts" "D:\backup\sets\MyDefrag Scripts" /s /e /xx /copyall /xa:s /xa:h /NS /NP /NDL /NJH /NJS /LOG+:d:\logs\relarqs.txt
if %errorlevel% EQU 0 goto vericopia
set copiou=B

:vericopia
set agora=%date% as %time%
if %copiou% NEQ A goto tevecopia

echo fim: %agora% >> d:\logs\bkplst.txt
echo >> d:\logs\bkplst.txt
echo Nao houve arquivo novo nem modificado. >> d:\logs\bkplst.txt
echo ----- >> d:\logs\bkplst.txt

echo fim: %agora% >> d:\logs\bkpmsg.txt
echo >> d:\logs\bkpmsg.txt
echo Nao houve arquivo novo nem modificado. >> d:\logs\bkpmsg.txt
goto salvarel

:tevecopia
echo fim: %agora% >> d:\logs\bkplst.txt
echo >> d:\logs\bkplst.txt
copy d:\logs\bkplst.txt + d:\logs\relarqs.txt d:\logs\temp.txt
copy d:\logs\temp.txt d:\logs\bkplst.txt
echo ----- >> d:\logs\bkplst.txt

echo fim: %agora% >> d:\logs\bkpmsg.txt
echo >> d:\logs\bkpmsg.txt
echo Arquivos novos ou modificados copiados. >> d:\logs\bkpmsg.txt

:salvarel
if exist d:\logs\bkplog.txt goto junta
copy d:\logs\bkplst.txt d:\logs\bkplog.txt
goto fim

:junta
copy d:\logs\bkplst.txt + d:\logs\bkplog.txt d:\logs\temp.txt
copy d:\logs\temp.txt d:\logs\bkplog.txt

:fim
msg * /w < d:\logs\bkpmsg.txt
del d:\logs\bkpmsg.txt
del d:\logs\bkplst.txt
del d:\logs\temp.txt
del d:\logs\relarqs.txt



My System SpecsSystem Spec
.

Reply

 Filtering folders inside My Documents folder




Thread Tools



Similar help and support threads for2: Filtering folders inside My Documents folder
Thread Forum
Movie folders inside User folder. General Discussion
Solved One folder with files, inside a number of empty folders General Discussion
Solved Ungroup files and folders inside a folder(i.e subdirectory) General Discussion
Solved Blue folders in Documents folder General Discussion
Solved Can I create a folder template with folders inside? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 01:40 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33