Login | |
|
 |
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
|
|
| |
|
|
|
 |
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.
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|