Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Backup Script for Laptop Users

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,35182
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Backup Script for Laptop Users
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Backup Script for Laptop Users - 6/7/2006 12:22:20 AM   
  torstenj

 

Posts: 9
Score: 2
Joined: 6/6/2006
Status: offline
Here is a little Backup Script. This script backup different files and folders.
Documentation of that script is very well - if you have some changes, ideas or hints post it here.

Updated! The last script was not the final! ...sorry for that...


      


Line 160 is now @ 960 - but I modified it! :-) Thanks!

Regards,

Torsten

< Message edited by torstenj -- 6/7/2006 3:44:01 AM >
 
 
Revisions: 2 | Post #: 1
 
 RE: Backup Script for Laptop Users - 6/7/2006 3:13:29 AM   
  edavis6678

 

Posts: 121
Score: 0
Joined: 1/12/2006
Status: offline
nice script.  If you can, update your code and have the link removed on line 166 to be the following:

IE.Navigate "file:///" & sTemp & "\iebar3.html"

(in reply to torstenj)
 
 
Post #: 2
 
 RE: Backup Script for Laptop Users - 3/19/2007 2:37:09 PM   
  FBSmith

 

Posts: 4
Score: 0
Joined: 3/19/2007
Status: offline
I like this backup script, but have a few questions.
I tried it out with a USB drive, it told me is was done when it ran out of space on the usb Key, but not all files were copied.
Is it possible to check for how much room is needed and write an error box if there isn't enough room?

I loved the idea of checking the path in the registry, is there a way to do this for these folders?

"C:\Documents and Settings\"% USERNAME% "\Application Data\Microsoft\Proof
"C:\Documents and Settings\"% USERNAME% "\Application Data\Microsoft\Templates"
"C:\Documents and Settings\"% USERNAME% "\Application Data\Microsoft\Signatures"



Frank

(in reply to edavis6678)
 
 
Post #: 3
 
 RE: Backup Script for Laptop Users - 2/1/2008 7:09:58 AM   
  lizaoreo

 

Posts: 1
Score: 0
Joined: 1/31/2008
Status: offline
I'm interested in trying to convert this script somewhat to move files from one computer to another placing them in their appropriate folder.  (IE. User documents, favorites, desktops, etc...).  We lease computers from Dell and I was hoping to make the process of swapping out each lease a little less painful.  In the past a batch file was used, but that required manually mapping and unmapping drives and other such things.  I'm hoping to set this script up so that it'll prompt for the new comptuers name, then, being run from the old computer, it will map a drive, move the stuff, then unmap the drive.  Basically to start off, I was just going to run the program itself on one of our XP computers, but it comes back with an Syntax error on Line 17, character 13.  Could someone explain that to me please?

Thanks

(in reply to FBSmith)
 
 
Post #: 4
 
 RE: Backup Script for Laptop Users - 2/2/2008 10:20:17 AM   
  mbouchard


Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
quote:

ORIGINAL: lizaoreo

I'm interested in trying to convert this script somewhat to move files from one computer to another placing them in their appropriate folder.  (IE. User documents, favorites, desktops, etc...).  We lease computers from Dell and I was hoping to make the process of swapping out each lease a little less painful.  In the past a batch file was used, but that required manually mapping and unmapping drives and other such things.  I'm hoping to set this script up so that it'll prompt for the new comptuers name, then, being run from the old computer, it will map a drive, move the stuff, then unmap the drive.  Basically to start off, I was just going to run the program itself on one of our XP computers, but it comes back with an Syntax error on Line 17, character 13.  Could someone explain that to me please?

Thanks


Take a look at Robocopy.  It is a command line tool from MS that is pretty damn useful.  If you do a google search for Robocopy GUI you will find some that will do the mapping for you.  Or, you can just create a script that will map the drive, run Robocopy then unmap the drive.

The DOS command would look something like this:


Robocopy c:\documents and settings \\destinationPC\Documents and settings /E /COPYALL /XD %TEMP% c:\documents and settings\Administrator /XF *.tmp /TEE /ETA /LOG:c:\RoboCopyDS.txt

But you would need to test it.

/XD excludes the listed folders (Not sure about needing quotes or if the %temp% would work.  But you can get by the %temp% when doing it in vbscript
/XF excludes the listed files
/COPYALL
/E copies all sub directories including empty ones
/TEE displays output in Cmd window (Needed if you want to see a progress when using a log file

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to lizaoreo)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Backup Script for Laptop Users Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts