Re: How can I get all folders to show date modified?



Hi Pegasus,

That is definably wrong.
Maybe ?
@echo off
xcopy /s /y /d "%C:\Documents and Settings\HP_Administrator%\My Documents" "J:\"
xcopy /s /y /d "% C:\Documents and Settings\HP_Administrator%\Favorites" "J:\"
xcopy /s /y /d "%C:\Documents and Settings\HP_Administrator%\Cookies" "J:\"
xcopy /s /y /d "C:\Program Files\Agent\" "J:"

I think the way it is written it would have to be saved at the C:\
Maybe it would be better to store it at the HP_Administrator.

Maybe:
@echo off
xcopy /s /y /d "%HP_Administrator%\My Documents" "J:\"
xcopy /s /y /d "%HP_Administrator%\Favorites" "J:\"
xcopy /s /y /d "%HP_Administrator%\Cookies" "J:\"
xcopy /s /y /d "C:\Program Files\Agent\" "J:"

I went to CMD and it was in that folder HP_Administrator but the Cookies folder was not there and a few others but it is
there in windows.
Maybe where you are already at HP_Administrator in the CMD mode you can leave that out?

@echo off
xcopy /s /y /d "My Documents" "J:\"
xcopy /s /y /d "Favorites" "J:\"
xcopy /s /y /d "Cookies" "J:\"
xcopy /s /y /d "C:\Program Files\Agent\" "J:"

Please let me know if I am on the right track.

On Thu, 21 Sep 2006 13:39:47 -0400, RScotti <rscotti1@xxxxxxxxxxxxxxxxxx> wrote:

Hi Pegasus,

That sounds great but I don't even remember how to create a batch file but if you have the time I will try my best.
I have four folders and one has several folders inside it and is 1.53 GB Is my user profile my Administrators name?
I change my name but the folder still had the HP_Administrator for it. but in user accounts I changed it to RScotti So
is this how to do it?


I know that can't be right!

But if it is right? tell me how to create the file.
Thanks for your help this will save me a lot of time.

On Thu, 21 Sep 2006 21:17:55 +1000, "Pegasus \(MVP\)" <I.can@xxxxxxx> wrote:


"RScotti" <rscotti1@xxxxxxxxxxxxxxxxxx> wrote in message
news:io04h25p4u72k3p2g2cjre98lstpdmkpog@xxxxxxxxxx
Hi,
I noticed that my Cookies and some of my other folders do put the new date
when I update them but others such as
Favorites and Program files do not.
Is there a way to get all the folders to show the new date?

I do a lot of backups and it would be very convent to have them all show
the proper date.

Have a good day,
RScotti

remove "nospam" in order to email me.

When you write "proper date" I suspect you expect that
the data of a folder should reflect when any of its files were
updated. AFAIK, this functionalty is not guaranteed under
WinXP.

If you wish to back up files based on the create/modify
date then you should do it with a batch file. This would
allow you to fully automate the backup process and never
miss a new file while never copying and old file needlessly.
Here is a simple example:



Have a good day,
RScotti

remove "nospam" in order to email me.

Have a good day,
RScotti

remove "nospam" in order to email me.
.



Relevant Pages

  • Re: How can I get all folders to show date modified?
    ... I can't understand how it can have an invalid path since I just put in the command to copy and they are there. ... I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work. ... @echo off ... remove "nospam" in order to email me. ...
    (microsoft.public.windowsxp.general)
  • Re: How can I get all folders to show date modified?
    ... @echo off ... Is it just looking at the destination folder to know what to copy? ... The copy command will copy things from the SOURCE to the DESTINATION: ... remove "nospam" in order to email me. ...
    (microsoft.public.windowsxp.general)
  • Re: How can I get all folders to show date modified?
    ... I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work. ... @echo off ... The copy command will copy things from the SOURCE to the DESTINATION: ... remove "nospam" in order to email me. ...
    (microsoft.public.windowsxp.general)
  • Re: Files deleted but free space doesnt increase
    ... unchecked "Compress files in this folder" and let it work for a while. ... So is my problem that although I'm deleting hundreds of GB, ... is an NTFS volume with file compression enabled. ... echo %date% %time%> c:\test.txt ...
    (microsoft.public.windows.file_system)
  • Re: How can I get all folders to show date modified?
    ... The error didn't show not even a fraction of what I have in the backup folder. ... @echo off ... remove "nospam" in order to email me. ...
    (microsoft.public.windowsxp.general)