Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup script to copy IE Favorites etc

Status
Not open for further replies.
Oct 21, 2004
183
US
I'm looking for a script that will basically run at login and copy the favorites of the user and any other files I might designate to each user's home folder which is always the U:\ drive.

Also I would need it to delete the previous save or overwrite it so it doesn't use up so much space.

Any suggestions
 
You might want to rethink this a bit. If you make a backup copy and then delete it without verifying that it is OK to do so, then what is the point?

Suppose a user has accidentally deleted a bunch of favorites and did not notice. As they log off you delete the saved copy and copy back an empty or impartial list. What have you gained?

I would think it would be better to append any new or changed information to the users directory.

I would suggest you take a look at the free utility from Microsoft called ROBOCOPY. It is easily scripted in a batch file and has a very robust feature set.

I hope you find this post helpful.

Regards,

Mark
 
Another question. I'm using Robocopy from the 2003 resource kit and I'm trying to use this script i got off the web to copy my favorites which I then hope to add this the the login script for all peopel in my domain. I think the spaces in "Documents and Settings is messing it up though this is what I have and it's not working.

@ECHO OFF
SETLOCAL

SET _source=C:\Documents and Settings\%username%\Favorites

SET _dest=U:\Favorites

SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%
 
I fixed my own issue...Need "quotes" around C and at the end of settings this work fine below.

@ECHO OFF
SETLOCAL

SET _source="C:\Documents and Settings\%username%\Favorites"

SET _dest=U:\Favorites

SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top