Re: How can I get all folders to show date modified?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Fri, 22 Sep 2006 16:35:33 +1000
See below.
To understand what you're doing it is essential for you to
start a Command Prompt (click Start / Run / cmd {OK}),
then to perform some practice exercises. Without practice
you will be blindly following recipes, which is not a good
way to do things.
"RScotti" <rscotti1@xxxxxxxxxxxxxxxxxx> wrote in message
news:c3n6h2t9dchn7li3n1svseuka8iqdi4l4r@xxxxxxxxxx
Hi Pegasus,"J:\MyFiles\"
your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"
There is still a % there (actually my oversight) - get rid of it!
I do have some questions on this way.path.I just thought you meant to substitute that for my HP Administrator
I don't mind putting in "%UserProfile%" if it is easier and puts the whole
string
Leave it hardcoded, without any variables.
won't that put my new copy inside my existingxcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"If I copy J:\Agent to my backup which has in it the folder named Agent
Agent as Agent\Agent? Shouldn't be J:\ instead?
No, it won't, by why don't you give it a try in order
to increase your familiarity?
"J:\MyFiles\"xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
Is this "J:\MyFiles\" to mean this? "J:\backup;cookies;favorites\"
No, J:\MyFiles is simply a name a picked. Again you should try it
for yourself.
How does this know what three files to copy? Do I put in the three filesin separate lines or something like above?
Did you follow my suggestion on how to find out the
switches for xcopy.exe? Especially the "/d" switch?
You still have one of the %
Get rid of it.
So which one is correct?"J:\backup;cookies;favorites\"
the one line for the three files in the HP_Administrator directory:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\""J:\Backup\"
Or this?
@echo off
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%""J:\Favorites\"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%""J:\Cookies\"
- Be careful with my source folder. It must exist!You don't mention the source folder in the string?
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:
xcopy /switches SOURCE DESTINATION
Little guessing competition: What's the surce for your own command
and what's the destination?
Please copy and paste the best way for me to do this. I am really excitedabout this and appreciate your valuable time.
wrote:
On Fri, 22 Sep 2006 07:57:07 +1000, "Pegasus \(MVP\)" <I.can@xxxxxxx>
Documents"
I wrote "%UserProfile%", which is a Windows environmental
variable pointing to your current profile folder, and you changed
it to "%C:\Documents and Settings...", which makes no sense.
Omit those "%" symbols! Your first attempt is probably your best.
I made these changes:
- Omit the errant %.
- Add the /h switch.
- Specify a properly named destination folder.
Start a Command Prompt and type xcopy /? to see the
meaning of all switches.
"RScotti" <rscotti1@xxxxxxxxxxxxxxxxxx> wrote in message
news:0un5h25hg7kih4qe52df8668cefbjopb62@xxxxxxxxxx
Hi Pegasus,
That is definably wrong.
Maybe ?
@echo off
xcopy /s /y /d "%C:\Documents and Settings\HP_Administrator%\My
Settings\HP_Administrator%\Favorites""J:\"
xcopy /s /y /d "% C:\Documents and
Cookies"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
<rscotti1@xxxxxxxxxxxxxxxxxx>folder was not there and a few others but it is
there in windows.leave that out?
Maybe where you are already at HP_Administrator in the CMD mode you can
@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
GBwrote:
but if you have the time I will try my best.
Hi Pegasus,
That sounds great but I don't even remember how to create a batch file
I have four folders and one has several folders inside it and is 1.53
newIs my user profile my Administrators name?
but in user accounts I changed it to RScotti SoI change my name but the folder still had the HP_Administrator for it.
wrote: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>
"RScotti" <rscotti1@xxxxxxxxxxxxxxxxxx> wrote in message
news:io04h25p4u72k3p2g2cjre98lstpdmkpog@xxxxxxxxxx
Hi,
I noticed that my Cookies and some of my other folders do put the
date
showwhen 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
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.
Have a good day,
RScotti
remove "nospam" in order to email me.
.
- Follow-Ups:
- Re: How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- References:
- How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- From: Pegasus \(MVP\)
- Re: How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- From: RScotti
- Re: How can I get all folders to show date modified?
- From: Pegasus \(MVP\)
- Re: How can I get all folders to show date modified?
- From: RScotti
- How can I get all folders to show date modified?
- Prev by Date: Re: how to stop a user's internet access???
- Next by Date: Re: progas wont open
- Previous by thread: Re: How can I get all folders to show date modified?
- Next by thread: Re: How can I get all folders to show date modified?
- Index(es):
Relevant Pages
|
Loading