How can I get all folders to show date modified?

  • Thread starter Thread starter RScotti
  • Start date Start date
R

RScotti

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.
 
RScotti said:
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:

@echo off
xcopy /s /y /d "%UserProfile%\My Documents" "D:\Backup\"
 
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?

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

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.

when I update them but others such as

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.
 
Hi, Pegasus,
I think I remember how to create a bat file Open notepad put in data and save it as backup.bat
Is that right?
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?

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

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.




Have a good day,
RScotti

remove "nospam" in order to email me.

Have a good day,
RScotti

remove "nospam" in order to email me.
 
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.

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.




Have a good day,
RScotti

remove "nospam" in order to email me.

Have a good day,
RScotti

remove "nospam" in order to email me.
 
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.

@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
"J:\MyFiles\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

I made these changes:
- Omit the errant %.
- Add the /h switch.
- Be careful with my source folder. It must exist!
- Specify a properly named destination folder.

Start a Command Prompt and type xcopy /? to see the
meaning of all switches.

RScotti said:
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.

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.
 
Hi Pegasus,

I am confused you say that this is the best?
@echo off
xcopy /s /y /d /h "%C:\Documents and Settings\HP_Administrator%\My Documents" "J:\Backup\"
xcopy /s /y /d /h "% C:\Documents and Settings\HP_Administrator%\Favorites" "J:\Backup\"
xcopy /s /y /d /h "%C:\Documents and Settings\HP_Administrator%\Cookies" "J:\Backup \"
xcopy /s /y /d /h"%C:\Documents and Settings\HP_Administrator% C:\Program Files\Agent\" "J:Backup\"

your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%"
"J:\MyFiles\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

I do have some questions on this way.
I don't mind putting in "%UserProfile%" if it is easier and puts the whole path.I just thought you meant to substitute
that for my HP Administrator string
xcopy /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 won't that put my new copy inside my existing
Agent as Agent\Agent? Shouldn't be J:\ instead?
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
Is this "J:\MyFiles\" to mean this? "J:\backup;cookies;favorites\"
How does this know what three files to copy? Do I put in the three files in separate lines or something like above?
You still have one of the %

So which one is correct?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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?

Please copy and paste the best way for me to do this. I am really excited about this and appreciate your valuable time.


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 said:
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.

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.

Have a good day,
RScotti

remove "nospam" in order to email me.
 
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 said:
Hi Pegasus,


your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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.
I don't mind putting in "%UserProfile%" if it is easier and puts the whole
path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.
If I copy J:\Agent to my backup which has in it the folder named Agent
won't that put my new copy inside my existing
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\"
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 files
in 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?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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\"
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 excited
about this and appreciate your valuable time.
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 said:
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
 
Hi Pegasus,
I don't mind trying but how will I know if I did it right? You can only update once

I did this one:

@echo off
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator" "J:\Backup\"
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\"

And I got this?

Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\HP_Administrator>backup.bat Invalid path 0 File(s) copied
Parse Error C:\Documents and Settings\HP_Administrator\ntuser.dat Sharing violation
C:\Documents and Settings\HP_Administrator\ntuser.dat Sharing violation C:\Documents and
Settings\HP_Administrator>

So I tried the other one:

@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

and I got this:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>backup.bat
Invalid path
0 File(s) copied
Parse Error
C:\Documents and Settings\HP_Administrator\ntuser.dat
Sharing violation
C:\Documents and Settings\HP_Administrator\ntuser.dat
Sharing violation

C:\Documents and Settings\HP_Administrator>backup2.bat
Invalid path
0 File(s) copied
Invalid path
0 File(s) copiedettings\HP_Administrator>

I had trouble coping and pasting and may got something wrong.

So I am going to try this:

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

And here's what happened: At least I got a response!

C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@roxio[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@speakeasy[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@symantecstore[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@symantec[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@updatexp[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@ups[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@verizon[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@wc[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@wdc[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@weather[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@whdh[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[1].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
strator@yahoo[2].txt
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\index.dat

C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Beach.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Cheers.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\cheers1.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Coming in from Rain.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Desktop.ini
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\feeding cake.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 001.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 002.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 003.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 004.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 005.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 007.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 008.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 009.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 010.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 011.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 012.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 013.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 014.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 015.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 016.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 017.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 018.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 019.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 020.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 021.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 022.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Julie's Baby Shower 023.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\married!.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Outside our cottage - Mt. Nevis in background.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Picasa.ini
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\standing cheers.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Thumbs.db
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Documents\My Pict
ures\Where we would have been married.jpg
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Mine\Agent.lnk
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Mine\IEXPLORE.EXE

C:\Documents and Settings\HP_Administrator\My Documents\Backup\Mine\My Documents
..lnk
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Mine\Show Desktop
..scf
C:\Documents and Settings\HP_Administrator\My Documents\Backup\Mine\Windows Expl
orer.lnk
C:\Documents and Settings\HP_Administrator\My Documents\Backup\PayPal\Reporting
Unauthorized Use of a PayPal Account - PayPal.htm
C:\Documents and Settings\HP_Administrator\My Documents\Backup\PayPal\Unauthoriz
ed Use of PayPal Account - PayPal.htm
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0 or FireWire drive without shutting down my
system.doc
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0.htm
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive.htm
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Window.doc
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows.htm
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\bl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\br.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\email.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\enduser.css
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\enduser.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\fw_menu.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\menu_content.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\print.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\support.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\tl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\tr.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\trnsp.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Can I plug in or unplug my USB 2.0_files\utilities.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\bl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\br.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\email.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\enduser.css
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\enduser.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\fw_menu.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\menu_content.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\print.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\support.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\tl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\tr.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\trnsp.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\How to connect and disconnect drive_files\utilities.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\bl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\br.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\email.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\enduser.css
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\enduser.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\fw_menu.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\menu_content.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\print.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\support.js
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\tl.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\tr.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\trnsp.gif
C:\Documents and Settings\HP_Administrator\My Documents\Backup\WD\WD Instruction
s\Why can't I use the Unplug or Eject Hardware icon to stop my FireWire or USB d
rive in Windows_files\utilities.js
210 File(s) copied
Invalid path
0 File(s) copied

C:\Documents and Settings\HP_Administrator>
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 said:
Hi Pegasus,


your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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.
I don't mind putting in "%UserProfile%" if it is easier and puts the whole
path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.
If I copy J:\Agent to my backup which has in it the folder named Agent
won't that put my new copy inside my existing
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\"
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 files
in 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?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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\"
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 excited
about this and appreciate your valuable time.
Have a good day,
RScotti

remove "nospam" in order to email me.
 
Hi Pegasus,
This may help.
On the last try, from what I did notice. The error didn't show not even a fraction of what I have in the backup folder.
I have 3328 files and 293 folders. These folders are NOT the ones I have updated either.

I really thought that one would work and I am out of ideas.

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 said:
Hi Pegasus,


your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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.
I don't mind putting in "%UserProfile%" if it is easier and puts the whole
path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.
If I copy J:\Agent to my backup which has in it the folder named Agent
won't that put my new copy inside my existing
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\"
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 files
in 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?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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\"
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 excited
about this and appreciate your valuable time.
Have a good day,
RScotti

remove "nospam" in order to email me.
 
See below.


RScotti said:
Hi Pegasus,
I don't mind trying but how will I know if I did it right? You can only
update once

Not correct.
1. Create a small test folder with subfolders.
2. Put some test files inside.
3. Use xcopy.exe to copy this folder to a second test folder.
4. Test your script on the second test folder.
5. Repeat Steps 3. and 4. until the result is to your satisfaction.
I did this one:

@echo off
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator" "J:\Backup\"
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\"

Do not omit the trailing backslash after "Agent". It ensures that
the target folder will be created if it does not already exist.
And I got this?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\HP_Administrator>backup.bat Invalid path 0 File(s) copied
Parse Error C:\Documents and Settings\HP_Administrator\ntuser.dat Sharing violation
C:\Documents and Settings\HP_Administrator\ntuser.dat
Sharing violation C:\Documents and
Settings\HP_Administrator>

Your registry is locked and you cannot back it up in
this way. You do not need to anywayt. Add the /c
switch to force xcopy.exe to continue regardless.
So I tried the other one:

@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

You cannot list folders by stringing them along with
semicolons in between!
and I got this:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>backup.bat
Invalid path
0 File(s) copied
Parse Error
C:\Documents and Settings\HP_Administrator\ntuser.dat
Sharing violation
C:\Documents and Settings\HP_Administrator\ntuser.dat
Sharing violation

C:\Documents and Settings\HP_Administrator>backup2.bat
Invalid path
0 File(s) copied
Invalid path
0 File(s) copiedettings\HP_Administrator>

I had trouble coping and pasting and may got something wrong.

So I am going to try this:

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

And here's what happened: At least I got a response!

So you did! Remember to add those trailing backslashes after
the TARGET folders. However . . . What's the trailing backslach
doing after the "Agent" SOURCE folder? It's wrong - get rid of it
or code it like so:
xcopy /s /y /d /h /c "C:\Program Files\Agent\*.*" "J:\Agent\"

No need to post all this repetitive stuff . . .


C:\Documents and Settings\HP_Administrator\My Documents\Backup\Cookies\hp_admini
(e-mail address removed)[2].txt


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 said:
Hi Pegasus,


your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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.
I don't mind putting in "%UserProfile%" if it is easier and puts the
whole
path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.
xcopy /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
won't that put my new copy inside my existing
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?
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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
files
in 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?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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
excited
about this and appreciate your valuable time.
1.53
GB the
new

Have a good day,
RScotti

remove "nospam" in order to email me.
 
Hi Again,
210 File(s) copied
Invalid path
0 File(s) copied
This was at the bottom and I missed it. there were 210 files copied.
Don't know why the others were not copied?
Also, I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work.
Don't know how that got there cause the one that worked was backup3.bat.

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 said:
Hi Pegasus,


your new way seems so much better:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator%" "J:\MyFiles\"
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.
I don't mind putting in "%UserProfile%" if it is easier and puts the whole
path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.
If I copy J:\Agent to my backup which has in it the folder named Agent
won't that put my new copy inside my existing
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\"
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 files
in 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?
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%" "J:\backup;cookies;favorites\"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\Agent\"

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%" "J:\Backup\"
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\"
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 excited
about this and appreciate your valuable time.
Have a good day,
RScotti

remove "nospam" in order to email me.
 
Hi,
Maybe I need a new switch for these other files although they are not the same type they have:
txt,jpg, Desktop and other ini, thumb.db, My folder Mine which has startup applications in it. some htm, gig, Only 1
doc I have a lot of them, js and css files.
I can't find out why these are not being copied?
Hi Again,
210 File(s) copied
Invalid path
0 File(s) copied
This was at the bottom and I missed it. there were 210 files copied.
Don't know why the others were not copied?
Also, I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work.
Don't know how that got there cause the one that worked was backup3.bat.

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.



There is still a % there (actually my oversight) - get rid of it!

path.I just thought you meant to substitute that for my HP Administrator
string

Leave it hardcoded, without any variables.

won't that put my new copy inside my existing

No, it won't, by why don't you give it a try in order
to increase your familiarity?


No, J:\MyFiles is simply a name a picked. Again you should try it
for yourself.

in 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?


Get rid of it.


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?



about this and appreciate your valuable time.

Have a good day,
RScotti

remove "nospam" in order to email me.

Have a good day,
RScotti

remove "nospam" in order to email me.
 
Hi,
I can't understand how it can have an invalid path since I just put in the command to copy and they are there.

There was a program in the old Norton Utilities called File Compare or something like that. It would highlight the
different items in the two files you were looking at. Is there a way to get that now or any other that will do the job?

I guess I go to bed now, I can't seem to get any more done.
I would really appreciate your help now.

Hi,
Maybe I need a new switch for these other files although they are not the same type they have:
txt,jpg, Desktop and other ini, thumb.db, My folder Mine which has startup applications in it. some htm, gig, Only 1
doc I have a lot of them, js and css files.
I can't find out why these are not being copied?


Have a good day,
RScotti

remove "nospam" in order to email me.

Have a good day,
RScotti

remove "nospam" in order to email me.
 
You have to post the batch file you currently use if you
require any further comments.

You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.

If you still believe that a single file failed to get copied
then you should post its full name and location.


RScotti said:
Hi,
I can't understand how it can have an invalid path since I just put in the
command to copy and they are there.
There was a program in the old Norton Utilities called File Compare or
something like that. It would highlight the
different items in the two files you were looking at. Is there a way to
get that now or any other that will do the job?
 
Hi,
I sent this message @ 1:07 PM and haven't seen it posted yet. It's now 5:36 PM so I am sending it again.

I have exhausted all my know how on the three that didn't copy all the files and really don't know what else I can do?
You have to post the batch file you currently use if you
require any further comments. See below.
You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.
This shouldn't apply this time since all the folders are empty.
If you still believe that a single file failed to get copied
then you should post its full name and location.
These files are posted below with my Test bat file executing them.

Hi Pegasus,
Sorry, I guess I don't know enough about this. Although some files were copied none of the destination folders had the
correct amount of files or the size in them except Agent on the third try. See below.
..
After a lot of thinking I did get one right but don't know about the other three folders. I am stumped.

Here are the results:
c: test had 3328 files, 293 folders, 1.09 GB
j: test had 3328, 283 1.09 10 less folders

c: agent 192, 5 480 mb
j: test agent empty
SECOND try with out the extra \
xcopy /s /y /d /h "C:\Program Files\Agent" "J:\test Agent"
j: test agent 194 5 481 mb

c:favorites 160 9 54.5 kb
j test favorites 160 9 648 kb 593.5 kb more

c:cookies 120 0 115 kb
j:test cookies 120 0 556 kb 441 kb more
You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.
That makes sense but It can't be that cause all these files should have been updated. The test folders on J: were empty
so they all should have been copied.
If you still believe that a single file failed to get copied
then you should post its full name and location.
According to my J:folder all the folders had some copied files in them except Agent which was empty
but the script said only 120 files were copied.

The second time I ran it the program seem to work except for the agent folder.
There is still files missing that didn't get copied the first or second time.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>test
0 File(s) copied
0 File(s) copied
0 File(s) copied
Invalid path
0 File(s) copied

this is the path from Explorer:
C:\Program Files\Agent
this is the path from my batch file:
C:\Program Files\Agent\

So I tried it again with out the extra \ and it worked.the extra files are because I received emails.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>test2
0 File(s) copied
0 File(s) copied
0 File(s) copied
C:\Program Files\Agent\8859-1.cod
C:\Program Files\Agent\8859-10.cod
C:\Program Files\Agent\8859-11.cod
C:\Program Files\Agent\8859-13.cod
C:\Program Files\Agent\8859-14.cod
C:\Program Files\Agent\8859-15.cod
C:\Program Files\Agent\8859-1w.cod
C:\Program Files\Agent\8859-2.cod
C:\Program Files\Agent\8859-3.cod
C:\Program Files\Agent\8859-4.cod
C:\Program Files\Agent\8859-5.cod
C:\Program Files\Agent\8859-6.cod
C:\Program Files\Agent\8859-7.cod
C:\Program Files\Agent\8859-8.cod
C:\Program Files\Agent\8859-9.cod
C:\Program Files\Agent\agent.chm
C:\Program Files\Agent\agent.cnt
C:\Program Files\Agent\agent.exe
C:\Program Files\Agent\agent.exe.manifest
C:\Program Files\Agent\agent.hlp
C:\Program Files\Agent\agent.xrs
C:\Program Files\Agent\agent846.exe
C:\Program Files\Agent\cp1250.cod
C:\Program Files\Agent\cp1251.cod
C:\Program Files\Agent\cp1252.cod
C:\Program Files\Agent\cp1253.cod
C:\Program Files\Agent\cp1254.cod
C:\Program Files\Agent\cp1255.cod
C:\Program Files\Agent\cp1256.cod
C:\Program Files\Agent\cp1257.cod
C:\Program Files\Agent\cp1258.cod
C:\Program Files\Agent\cp1361.cod
C:\Program Files\Agent\cp874.cod
C:\Program Files\Agent\cp932.cod
C:\Program Files\Agent\cp936.cod
C:\Program Files\Agent\cp949.cod
C:\Program Files\Agent\cp950.cod
C:\Program Files\Agent\dbghelp.dll
C:\Program Files\Agent\install.log
C:\Program Files\Agent\koi8.cod
C:\Program Files\Agent\koi8ru.cod
C:\Program Files\Agent\koi8u.cod
C:\Program Files\Agent\macroman.cod
C:\Program Files\Agent\mainenu5.clx
C:\Program Files\Agent\mainenu5.tlx
C:\Program Files\Agent\norweg.cod
C:\Program Files\Agent\readme.txt
C:\Program Files\Agent\swedish.cod
C:\Program Files\Agent\tis-620.cod
C:\Program Files\Agent\unwise.exe
C:\Program Files\Agent\viscii.cod
C:\Program Files\Agent\All_COD\8859-1.cod
C:\Program Files\Agent\All_COD\8859-10.cod
C:\Program Files\Agent\All_COD\8859-11.cod
C:\Program Files\Agent\All_COD\8859-13.cod
C:\Program Files\Agent\All_COD\8859-14.cod
C:\Program Files\Agent\All_COD\8859-15.cod
C:\Program Files\Agent\All_COD\8859-1w.cod
C:\Program Files\Agent\All_COD\8859-2.cod
C:\Program Files\Agent\All_COD\8859-3.cod
C:\Program Files\Agent\All_COD\8859-4.cod
C:\Program Files\Agent\All_COD\8859-5.cod
C:\Program Files\Agent\All_COD\8859-6.cod
C:\Program Files\Agent\All_COD\8859-7.cod
C:\Program Files\Agent\All_COD\8859-8.cod
C:\Program Files\Agent\All_COD\8859-9.cod
C:\Program Files\Agent\All_COD\cp1250.cod
C:\Program Files\Agent\All_COD\cp1251.cod
C:\Program Files\Agent\All_COD\cp1252.cod
C:\Program Files\Agent\All_COD\cp1253.cod
C:\Program Files\Agent\All_COD\cp1254.cod
C:\Program Files\Agent\All_COD\cp1255.cod
C:\Program Files\Agent\All_COD\cp1256.cod
C:\Program Files\Agent\All_COD\cp1257.cod
C:\Program Files\Agent\All_COD\cp1258.cod
C:\Program Files\Agent\All_COD\cp1361.cod
C:\Program Files\Agent\All_COD\cp874.cod
C:\Program Files\Agent\All_COD\cp932.cod
C:\Program Files\Agent\All_COD\cp936.cod
C:\Program Files\Agent\All_COD\cp949.cod
C:\Program Files\Agent\All_COD\cp950.cod
C:\Program Files\Agent\All_COD\koi8.cod
C:\Program Files\Agent\All_COD\koi8ru.cod
C:\Program Files\Agent\All_COD\koi8u.cod
C:\Program Files\Agent\All_COD\macroman.cod
C:\Program Files\Agent\All_COD\norweg.cod
C:\Program Files\Agent\All_COD\swedish.cod
C:\Program Files\Agent\All_COD\tis-620.cod
C:\Program Files\Agent\All_COD\viscii.cod
C:\Program Files\Agent\backup\agent.chm
C:\Program Files\Agent\backup\agent.exe.manifest
C:\Program Files\Agent\backup\agent.xrs
C:\Program Files\Agent\backup\agent846.exe
C:\Program Files\Agent\backup\readme.txt
C:\Program Files\Agent\Data\00000001.DAT
C:\Program Files\Agent\Data\00000001.IDX
C:\Program Files\Agent\Data\00000002.DAT
C:\Program Files\Agent\Data\00000002.IDX
C:\Program Files\Agent\Data\00000004.DAT
C:\Program Files\Agent\Data\00000004.IDX
C:\Program Files\Agent\Data\00000009.DAT
C:\Program Files\Agent\Data\00000009.IDX
C:\Program Files\Agent\Data\0000000A.DAT
C:\Program Files\Agent\Data\0000000A.IDX
C:\Program Files\Agent\Data\0000000B.DAT
C:\Program Files\Agent\Data\0000000B.IDX
C:\Program Files\Agent\Data\0000000D.DAT
C:\Program Files\Agent\Data\0000000D.IDX
C:\Program Files\Agent\Data\0000000E.DAT
C:\Program Files\Agent\Data\0000000E.IDX
C:\Program Files\Agent\Data\0000000F.DAT
C:\Program Files\Agent\Data\0000000F.IDX
C:\Program Files\Agent\Data\00000011.DAT
C:\Program Files\Agent\Data\00000011.IDX
C:\Program Files\Agent\Data\00000012.DAT
C:\Program Files\Agent\Data\00000012.IDX
C:\Program Files\Agent\Data\00000013.DAT
C:\Program Files\Agent\Data\00000013.IDX
C:\Program Files\Agent\Data\00000019.DAT
C:\Program Files\Agent\Data\00000019.IDX
C:\Program Files\Agent\Data\0000001A.DAT
C:\Program Files\Agent\Data\0000001A.IDX
C:\Program Files\Agent\Data\0000001B.DAT
C:\Program Files\Agent\Data\0000001B.IDX
C:\Program Files\Agent\Data\0000001C.DAT
C:\Program Files\Agent\Data\0000001C.IDX
C:\Program Files\Agent\Data\0000001D.DAT
C:\Program Files\Agent\Data\0000001D.IDX
C:\Program Files\Agent\Data\0000001E.DAT
C:\Program Files\Agent\Data\0000001E.IDX
C:\Program Files\Agent\Data\0000001F.DAT
C:\Program Files\Agent\Data\0000001F.IDX
C:\Program Files\Agent\Data\AGENT.INI
C:\Program Files\Agent\Data\Binary Newsgroups.ffs
C:\Program Files\Agent\Data\contact.xml
C:\Program Files\Agent\Data\content.zf
C:\Program Files\Agent\Data\custenu5.tlx
C:\Program Files\Agent\Data\Email Folders.ffs
C:\Program Files\Agent\Data\errorlog.xml
C:\Program Files\Agent\Data\FILTERS.DAT
C:\Program Files\Agent\Data\FILTERS.IDX
C:\Program Files\Agent\Data\folders.dat
C:\Program Files\Agent\Data\General-Purpose Folders.ffs
C:\Program Files\Agent\Data\groupdir.dat
C:\Program Files\Agent\Data\grpprops.dat
C:\Program Files\Agent\Data\junk.zf
C:\Program Files\Agent\Data\MFILTERS.DAT
C:\Program Files\Agent\Data\MFILTERS.IDX
C:\Program Files\Agent\Data\mutex.tmp
C:\Program Files\Agent\Data\MWORDS.DAT
C:\Program Files\Agent\Data\MWORDS.IDX
C:\Program Files\Agent\Data\personal.aab
C:\Program Files\Agent\Data\Symantec store invoice.html
C:\Program Files\Agent\Data\Symantec store invoice.txt
C:\Program Files\Agent\Data\tasklog.xml
C:\Program Files\Agent\Data\Text Newsgroups.ffs
C:\Program Files\Agent\Data\urltype.dat
C:\Program Files\Agent\Data\WORDS.DAT
C:\Program Files\Agent\Data\WORDS.IDX
C:\Program Files\Agent\Data\XPOST.DAT
C:\Program Files\Agent\Data\log\RouterLog-2006-08-23.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-24.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-25.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-26.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-27.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-28.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-29.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-30.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-08-31.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-01.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-02.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-03.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-04.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-05.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-06.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-07.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-08.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-09.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-10.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-11.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-12.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-13.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-14.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-15.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-16.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-17.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-18.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-19.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-20.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-21.xml
C:\Program Files\Agent\Data\log\RouterLog-2006-09-22.xml
C:\Program Files\Agent\Data\temp\TEMP.htm
C:\Program Files\Agent\Data\temp\TEMP1.htm
C:\Program Files\Agent\Data\temp\TEMP2.htm
194 File(s) copied


You have to post the batch file you currently use if you
require any further comments.
I posted this bat file:
@echo off
xcopy /s /y /d /h "C:\test" "J:\test"
xcopy /s /y /d /h "C:\Cookies" "J:\test cookies"
xcopy /s /y /d /h "C:\favorites" "J:\test favorites"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\test Agent"

Here's what I got the first time I ran it:

C:\Cookies\hp_administrator@fidelity[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@go[2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@hp[1].txt
C:\Cookies\hp_administrator@ingdirect[2].txt
C:\Cookies\hp_administrator@intel[1].txt
C:\Cookies\hp_administrator@kellys-korner-xp[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@live[2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@microsoft[2].txt
C:\Cookies\hp_administrator@msn[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@myaccount[1].txt
C:\Cookies\hp_administrator@nbc[1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@paypal[1].txt
C:\Cookies\hp_administrator@products[2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@redirect[1].txt
C:\Cookies\hp_administrator@redirect[2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@roxio[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@serviceswitching[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@speakeasy[1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@symantec[1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@updatexp[2].txt
C:\Cookies\hp_administrator@ups[1].txt
C:\Cookies\hp_administrator@verizon[1].txt
C:\Cookies\hp_administrator@viosoftware[2].txt
C:\Cookies\hp_administrator@walmart[1].txt
C:\Cookies\hp_administrator@wc[1].txt
C:\Cookies\hp_administrator@wdc[2].txt
C:\Cookies\hp_administrator@weather[2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\hp_administrator@whdh[1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][1].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\[email protected][2].txt
C:\Cookies\hp_administrator@yahoo[2].txt
C:\Cookies\index.dat
120 File(s) copied
C:\favorites\AIM Mail.url
C:\favorites\BetaNews Inside Information; Unreleased Products.url
C:\favorites\Desktop.ini
C:\favorites\Knowledge Base & FAQ's (Page 1 of 12).url
C:\favorites\MSN Hotmail - Today.url
C:\favorites\Test Pricewatch.comr.url
C:\favorites\Yahoo! Mail - (e-mail address removed)
C:\favorites\Computer\2007 Microsoft Office System Beta Known Issues-ReadMe - Pr
oducts - Microsoft Office Online.url
C:\favorites\Computer\Advanced Search.url
C:\favorites\Computer\Contact HP.url
C:\favorites\Computer\HP Email support.url
C:\favorites\Computer\HP Pavilion Media Center a1440n Desktop PC - Product Speci
fications .url
C:\favorites\Computer\Intelr 820 Chipset Family - Chipset Information and Downlo
ads.url
C:\favorites\Computer\Learning center - free online classes.url
C:\favorites\Computer\NVIDIA Home.url
C:\favorites\Computer\Search HP US - Search results for 'dla download'.url
C:\favorites\Computer\Speakeasy - Speed Test.url
C:\favorites\Computer\Verizon Central Broadband Beat.url
C:\favorites\Computer\Verizon Central.url
C:\favorites\Computer\WD 500 GB Knowledge Base & FAQ's (Page 1 of 9).url
C:\favorites\Computer\ZDNet Australia Speed Tester.url
C:\favorites\Computer\Software\A Troubleshooting Guide to Windows XP.url
C:\favorites\Computer\Software\Agent 3.3 Newsreader + Email.url
C:\favorites\Computer\Software\Agent Technical Support Request.url
C:\favorites\Computer\Software\All About System Restore in WinXP.url
C:\favorites\Computer\Software\AutoSizer - Resize Your Programs Automatically.ur
l
C:\favorites\Computer\Software\bertk.mvps.org_index.html.url
C:\favorites\Computer\Software\CompUSAr eRebates.url
C:\favorites\Computer\Software\dougknox.com_utility_scripts_desc_defrag_all.htm.
url
C:\favorites\Computer\Software\DriverAgent.com Driver Agent Scan Results.url
C:\favorites\Computer\Software\DriverAgent.com Fix Your Driver Problems Instantl
y with Driver Agent.url
C:\favorites\Computer\Software\Favorite Freeware.url
C:\favorites\Computer\Software\Five editions of Windows XP compared.url
C:\favorites\Computer\Software\Here are some troubleshooting steps to take when
System Restore fails to restore.url
C:\favorites\Computer\Software\Homepage What is RSS Feedreader Feedreader - To
tally Free RSS - ATOM Newsreader - Aggregator.url
C:\favorites\Computer\Software\How to Automate Disk Defragmenter Using Task Sche
duler Tool in Windows XP.url
C:\favorites\Computer\Software\John Barnett's Windows XP Help and Support.url
C:\favorites\Computer\Software\Malicious Software Removal Tool.url
C:\favorites\Computer\Software\Microsoft Corporation.url
C:\favorites\Computer\Software\Microsoft Office Online Home Page.url
C:\favorites\Computer\Software\Microsoft QuestionsCustomize Links.url
C:\favorites\Computer\Software\Microsoft Update.url
C:\favorites\Computer\Software\MSFN - Where People Go To Know.url
C:\favorites\Computer\Software\MVP Web Sites.url
C:\favorites\Computer\Software\Nutcase's Home.url
C:\favorites\Computer\Software\Questions Microsoft Products.url
C:\favorites\Computer\Software\Registry Mechanic - Free Software Downloads and S
oftware Reviews - Download.com.url
C:\favorites\Computer\Software\registrymechanic4.pdf.url
C:\favorites\Computer\Software\Restoration Incomplete... when running System Res
tore with Norton 2006 applications installed.url
C:\favorites\Computer\Software\Software & Driver downloads HP Pavilion Media Cen
ter a1440n Desktop PC.url
C:\favorites\Computer\Software\Support - Symantec Corp..url
C:\favorites\Computer\Software\System Restore fails to restore.url
C:\favorites\Computer\Software\The Elder Geek on Windows XP.url
C:\favorites\Computer\Software\Troubleshooting Windows STOP Messages.url
C:\favorites\Computer\Software\Troubleshooting Windows XP, Tweaks and Fixes for
Windows XP.url
C:\favorites\Computer\Software\Turning on or turning off Symantec Resource Prote
ction.url
C:\favorites\Computer\Software\U Page - Windows XP from A to Z.url
C:\favorites\Computer\Software\Virus and Spyware removal and prevention steps.ur
l
C:\favorites\Computer\Software\Vista Upgrade planning.url
C:\favorites\Computer\Software\Welcome to the MVPs.org home page!.url
C:\favorites\Computer\Software\Welcome To WinVistaInfo.org Your Windows Informat
ion Center!.url
C:\favorites\Computer\Software\Windows Live Local.url
C:\favorites\Computer\Software\Windows Marketplace.url
C:\favorites\Computer\Software\Windows Media.url
C:\favorites\Computer\Software\Windows Support Center.url
C:\favorites\Computer\Software\Windows Vista Capable and Premium Ready PCs.url
C:\favorites\Computer\Software\Windows XP Fixes, Tips and Tweaks.url
C:\favorites\Computer\Software\Windows XP Update Website - Tips News and Secrets
!.url
C:\favorites\Computer\Software\Windows XP, Tweaks and Fixes for Windows XP.url
C:\favorites\Computer\Software\Windows.url
C:\favorites\Computer\Software\XP Clean Install.url
C:\favorites\Consumer\Amazon.com Online Shopping for Electronics, Apparel, Compu
ters, Books, DVDs & more.url
C:\favorites\Consumer\BestBuy.com Search.url
C:\favorites\Consumer\Bootdisk.Com.url
C:\favorites\Consumer\Buy HP Laptops, Notebook PCs, Printers, Digital Cameras, D
esktop Computers, Televisions, Handhelds, Scanners, Monitors, Project.url
C:\favorites\Consumer\Buy.com - The Internet Superstore - Computers, Digital Cam
eras, Books, DVDs, & much more..url
C:\favorites\Consumer\CA Rebate Center.url
C:\favorites\Consumer\Calibex Price Comparison Shopping sites.url
C:\favorites\Consumer\circuitcity.com Consumer Electronics.url
C:\favorites\Consumer\CNET Shopper.com.url
C:\favorites\Consumer\CompUSA.com - Computers, Notebooks, Upgrades, Electronics,
Services and more.url
C:\favorites\Consumer\Comsumer PSC Home Page.url
C:\favorites\Consumer\DLL-files.com - Download all your missing dll-files..url
C:\favorites\Consumer\EveryFreeGift.com - Password Setup - Retrieval.url
C:\favorites\Consumer\FedEx Tracking - FedEx Shipping - FedEx Web Site.url
C:\favorites\Consumer\HP Pavilion Media Center a1440n Desktop PC - Product Speci
fications .url
C:\favorites\Consumer\http--www.inklineglobal.com-adsales-weather-tvo_offer_468_
new_monaxp.htmlmcp=US.url
C:\favorites\Consumer\inKline Global Shopping.url
C:\favorites\Consumer\KODAK EASYSHARE C875 Zoom Digital Camera.url
C:\favorites\Consumer\KOSS Welcome.url
C:\favorites\Consumer\Matthew Lesko Shows You How To Get Free Money To Pay Your
Bills!.url
C:\favorites\Consumer\Moynihan Lumber.url
C:\favorites\Consumer\NCIX.com - Canada's Premier Computer Store.url
C:\favorites\Consumer\Overstock.com, save up to 80% every day!.url
C:\favorites\Consumer\PayPal.url
C:\favorites\Consumer\PC Booster - Boost PC Speed and Stability.url
C:\favorites\Consumer\Pricewatch.com.url
C:\favorites\Consumer\Returning a product (consumer only).url
C:\favorites\Consumer\Small Business Desktop Advantage Windows and Microsoft Off
ice.url
C:\favorites\Consumer\SoftwareOutlet.com Features A Huge Selection Of The Most P
opular Software Titles At The Guaranteed Best Price.url
C:\favorites\Consumer\SonyStyle USA.url
C:\favorites\Consumer\Staples.comr. that was easyr..url
C:\favorites\Consumer\Stephen Gould Corporation Rebate Inquiry - Search.url
C:\favorites\Consumer\Symantec Products.url
C:\favorites\Consumer\Target.url
C:\favorites\Consumer\ThriftyShopper.url
C:\favorites\Consumer\UPS.url
C:\favorites\Consumer\Video Professor.url
C:\favorites\Consumer\VioSoftware.com - Buy Cheap Software Discount Sale.url
C:\favorites\Consumer\Virgin Mobile Home.url
C:\favorites\Consumer\Walmart.com - Always Low Prices!.url
C:\favorites\Consumer\Warranty Policy and Limitations.url
C:\favorites\Consumer\WDC Login.url
C:\favorites\Consumer\WDC Support Login.url
C:\favorites\Finance\Bank of America Home Personal.url
C:\favorites\Finance\Chase Online - My Accounts.url
C:\favorites\Finance\Discover Card .url
C:\favorites\Finance\EmigrantDirect.com.url
C:\favorites\Finance\Fidelity.url
C:\favorites\Finance\ING DIRECT.url
C:\favorites\Finance\John Hancock USA - Sign In-Enroll Now..url
C:\favorites\Finance\MBNA Net Access Account Snapshot.url
C:\favorites\Goverment\ Mass.Gov healthcare prices.url
C:\favorites\Goverment\FirstGov.gov The U.S. Government's Official Web Portal.ur
l
C:\favorites\Goverment\Mass.Gov.url
C:\favorites\Goverment\Town of Reading.url
C:\favorites\Links\AnyWho Internet Directory Assistance; Yellow Pages, White Pag
es, Toll-Free Numbers, Maps and Directions.url
C:\favorites\Links\Wikipedia, the free encyclopedia.url
C:\favorites\News&Weather\ABC News Online news, breaking news, feature stories a
nd more.url
C:\favorites\News&Weather\ABC.com.url
C:\favorites\News&Weather\CBS.url
C:\favorites\News&Weather\CBSNews.com - Breaking News Headlines and Video from C
BS News.url
C:\favorites\News&Weather\Erickson Tribune - Home.url
C:\favorites\News&Weather\FOX25, WFXT BOSTON, MA. A DIVISION OF FOX TELEVISION.u
rl
C:\favorites\News&Weather\MapQuest.Com Maps, Directions and More.url
C:\favorites\News&Weather\NBC Nightly News with Brian Williams - MSNBC.com.url
C:\favorites\News&Weather\NBC.com.url
C:\favorites\News&Weather\PBS.url
C:\favorites\News&Weather\Seismic Monitor.url
C:\favorites\News&Weather\The Daily Nightly - MSNBC.com.url
C:\favorites\News&Weather\The Online NewsHour PBS.url
C:\favorites\News&Weather\TheBostonChannel.com - Home.url
C:\favorites\News&Weather\washingtonpost.com - nation, world, technology and Was
hington area news and headlines.url
C:\favorites\News&Weather\weather.com - local weather forecasts, radar and repor
ts from The Weather Channel.url
C:\favorites\News&Weather\WHDH-TV - Boston - The News Station.url
C:\favorites\School\http--h30187.www3.hp.com-sessions-PDFView.jspcourseSessionId
=2166.url
C:\favorites\School\Microsoftr Windows XP 101 routine maintenance.url
C:\favorites\School\PC Booster - Boost PC Speed and Stability.url
C:\favorites\School\Safety first.url
C:\favorites\School\Windows XP Resource Kit Tools for Troubleshooting.url
C:\favorites\Vista & Office 2007\2007 Microsoft Office System Beta 2.url
C:\favorites\Vista & Office 2007\2007 Microsoft Office System Beta Known Issues-
ReadMe - Products - Microsoft Office Online.url
C:\favorites\Vista & Office 2007\Download details 2007 Microsoft Office system B
eta 2 Technical Refresh.url
C:\favorites\Vista & Office 2007\How to troubleshoot a failed installation of th
e Beta 2 Technical Refresh update for 2007 Microsoft Office suites.url
C:\favorites\Vista & Office 2007\Microsoft Download Center Search Results.url
C:\favorites\Vista & Office 2007\Microsoft Office Help and How-to Home Page - Mi
crosoft Office Online.url
C:\favorites\Vista & Office 2007\Windows Vista Do You Want to Help Improve Windo
ws Vista.url
C:\favorites\Vista & Office 2007\Windows Vista RC 1 Hardware Compatibility List
- IeXwiki.url
C:\favorites\Vista & Office 2007\Windows Vista RC 1 Software Compatibility List
- IeXwiki.url
C:\favorites\Vista & Office 2007\Windows Vista Upgrade planning.url
160 File(s) copied
Invalid path
0 File(s) copied

C:\Documents and Settings\HP_Administrator>


Have a good day,
RScotti

remove "nospam" in order to email me.
 
Hi Pegasus,
For some reason I can't send you all my data. I tried twice and it won't post here so here is the short version.
It is now 6:18 PM and the third try.
Hi,
I sent this message @ 1:07 PM and haven't seen it posted yet. It's now 5:36 PM so I am sending it again.

I have exhausted all my know how on the three that didn't copy all the files and really don't know what else I can do?
You have to post the batch file you currently use if you
require any further comments. See below.
You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.
This shouldn't apply this time since all the folders are empty.
If you still believe that a single file failed to get copied
then you should post its full name and location.
These files are posted below with my Test bat file executing them.

Hi Pegasus,
Sorry, I guess I don't know enough about this. Although some files were copied none of the destination folders had the
correct amount of files or the size in them except Agent on the third try. See below.
I posted this bat file:
@echo off
xcopy /s /y /d /h "C:\test" "J:\test"
xcopy /s /y /d /h "C:\Cookies" "J:\test cookies"
xcopy /s /y /d /h "C:\favorites" "J:\test favorites"
xcopy /s /y /d /h "C:\Program Files\Agent\" "J:\test Agent"

After a lot of thinking I did get one right but don't know about the other three folders. I am stumped.

Here are the results:
c: test had 3328 files, 293 folders, 1.09 GB
j: test had 3328, 283 1.09 10 less folders

c: agent 192, 5 480 mb
j: test agent empty

SECOND try with out the extra \
xcopy /s /y /d /h "C:\Program Files\Agent" "J:\test Agent"
j: test agent 194 5 481 mb

c:favorites 160 9 54.5 kb
j test favorites 160 9 648 kb 593.5 kb more

c:cookies 120 0 115 kb
j:test cookies 120 0 556 kb 441 kb more
You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.
That makes sense but It can't be that cause all these files should have been updated. The test folders on J: were empty
so they all should have been copied.
If you still believe that a single file failed to get copied
then you should post its full name and location.
According to my J:folder all the folders had some copied files in them except Agent which was empty
but the script said only 120 files were copied.

The second time I ran it the program seem to work except for the agent folder.
There is still files missing that didn't get copied the first or second time.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>test
0 File(s) copied
0 File(s) copied
0 File(s) copied
Invalid path
0 File(s) copied

this is the path from Explorer:
C:\Program Files\Agent
this is the path from my batch file:
C:\Program Files\Agent\

So I tried it again with out the extra \ and it worked.the extra files are because I received emails.


You have to post the batch file you currently use if you
require any further comments.

You should also check the meaning of the /d switch. It
is most likely the reason why some files do not get
copied on your second attempt.

If you still believe that a single file failed to get copied
then you should post its full name and location.



command to copy and they are there.
something like that. It would highlight the
get that now or any other that will do the job?

Have a good day,
RScotti

remove "nospam" in order to email me.
 
OK, let's concentrate on just one line of code. You used
xcopy /s /y /d /h "C:\test" "J:\test"

whereas I recommended
xcopy /s /y /d /h /c "C:\test" "J:\test\"

Spot the two differences?

Now let's turn on logging:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1

This is advanced stuff - it means that both normal and also
error reports should be collected in c:\test.log.

And here is your recipe to get to the bottom of your problem:
1. Delete J:\Test. This command will do it:
rd /s /q J:\test.

2. Run this command from a Command Prompt:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1

3. Run these commands from a Command Prompt and make a
note of the LAST line in each case:
dir c:\test | find /i "file(s)"
dir J:\test | find /i "file(s)"
Are the last lines the same?

4. Run this command from a Command Prompt and look out
for error reports:
notepad c:\test.log
 
I did this:
Now let's turn on logging:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1
And it wouldn't take I got this:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\HP_Administrator>xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1
The system cannot find the path specified.
'1' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\HP_Administrator>

Not knowing what else to do I tried my backup3.bat with the change to the Agent string without the extra \
and it didn't work on Agent but did do some updating on Cookies.

Here is the bat I used:
@echo off
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator\Favorites" "J:\Favorites"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator\Cookies" "J:\Cookies"
xcopy /s /y /d /h "C:\Documents and Settings\HP_Administrator\My Documents\Backup" "J:\Backup"
xcopy /s /y /d /h "C:\Program Files\Agent" "J:\Agent"
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>backup3
0 File(s) copied
C:\Documents and Settings\HP_Administrator\Cookies\hp_administrator@bankofameric
a[1].txt
C:\Documents and Settings\HP_Administrator\Cookies\[email protected]
rics[1].txt
C:\Documents and Settings\HP_Administrator\Cookies\hp_administrator@google[2].tx
t
C:\Documents and Settings\HP_Administrator\Cookies\[email protected]
ofamerica[1].txt
C:\Documents and Settings\HP_Administrator\Cookies\index.dat
5 File(s) copied
0 File(s) copied
Invalid path
0 File(s) copied

C:\Documents and Settings\HP_Administrator>\
So I tried it with your extra \c BTW I only noticed one difference unless you are counting the typed characters.

@echo off
xcopy /s /y /d /h /c "C:\Documents and Settings\HP_Administrator\Favorites" "J:\Favorites"
xcopy /s /y /d /h /c"C:\Documents and Settings\HP_Administrator\Cookies" "J:\Cookies"
xcopy /s /y /d /h /c"C:\Documents and Settings\HP_Administrator\My Documents\Backup" "J:\Backup"
xcopy /s /y /d /h /c"C:\Program Files\Agent" "J:\Agent"

I got this:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>backup3
0 File(s) copied
C:\Documents and Settings\HP_Administrator\Cookies\index.dat
1 File(s) copied
0 File(s) copied
Invalid path
0 File(s) copied

C:\Documents and Settings\HP_Administrator>

Don't know why the Agent is now giving me an invalid path?
Should I continue with your instructions even though the logging didn't work?

OK, let's concentrate on just one line of code. You used
xcopy /s /y /d /h "C:\test" "J:\test"

whereas I recommended
xcopy /s /y /d /h /c "C:\test" "J:\test\"

Spot the two differences?

Now let's turn on logging:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1

This is advanced stuff - it means that both normal and also
error reports should be collected in c:\test.log.

And here is your recipe to get to the bottom of your problem:
1. Delete J:\Test. This command will do it:
rd /s /q J:\test.

2. Run this command from a Command Prompt:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>c:\&1

3. Run these commands from a Command Prompt and make a
note of the LAST line in each case:
dir c:\test | find /i "file(s)"
dir J:\test | find /i "file(s)"
Are the last lines the same?

4. Run this command from a Command Prompt and look out
for error reports:
notepad c:\test.log

Have a good day,
RScotti

remove "nospam" in order to email me.
 
I made a mistake in the command I gave you. It should
have read:
xcopy /s /y /d /h /c "C:\test" "J:\test\" 1>c:\test.log 2>&1

At the same time much of what you report is incomprehensible
to me, which makes me suspect that you went off in a different
direction than the one I had in mind.

Seeing that we appear to be running roung in circles in what is
essentially a very simple and very basic task, I conclude that we
are pushing the limits of this method of communication. If you
wish to bring this issue to a satisfactory solution then I suggest
you drop me a note with your valid EMail address so that I can
discuss a more direct method of assistance. It's still totally
non-commercial. You can reach me under this temporary
address: (e-mail address removed). Change both "z"s into "s".
If I don't hear from you within 24 hours then I will close this
thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top