General discussion

Locked

Backup to the network

By Lkoller ·
I need to write a batch file by 8/17/00 to copy all of the personal data files from an NT/Novell Workstation (duel login) to a new folder on the Network home directory on the network for 80 users, one at a time. I want to put in a floppy and have it create the folder "Old Backup" added to their network home directory. The batch file has to have a variable to put in the starting path (D:\Winnt\profile\(NT userID) %1\Personal) and two variables in the network path (H:\users\(Unit Name)%2\(Employee Initials)%3). The network maps to the path (ie: H:\users\TSU\lak) when they logon, so I am not sure the last two variables are needed until I test it. There may be additional files, like Outlook calendar files that also need to be copied. I amnot sure whether to include the miscellaneous files or not. Anyone writing the best batch file wins! Thanks!

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Backup to the network

by elmagoal In reply to Backup to the network

Try modifying this bat file we use at one point.
rem hload1 username

net use y: \\server\folder

IF EXIST c:\winnt goto winnt
IF NOT EXIST C:\winnt goto windows
:winnt
path=c:\;c:\winnt;c:\winnt\system32
IF EXIST y:\%1 goto excel
md y:\%1
goto network

:windows
path c:\windows;c:\;c:\windows\command
IF EXIST y:\%1 goto excel
md y:\%1
goto network


:network
net use >y:\%1\drives.txt
hostname >y:\%1\hostname.txt
goto excel

:excel
IF EXIST y:\%1\excel goto excel1
mdy:\%1\excel
goto excel1
:excel1
xcopy c:\*.xl* /s y:\%1\excel /i /D:3-5-99
goto word


:word
IF EXIST y:\%1\word goto word1
md y:\%1\word
goto word1
:word1
xcopy c:\*.doc /s y:\%1\word /i /D:3-5-99
goto wordper


:wordper
IF EXIST y:\%1\wordper goto wordper1
md y:\%1\wordper
goto wordper1
:wordper1
xcopy c:\*.wpd /s y:\%1\wordper /i /D:3-5-99
goto ppoint


point
IF EXIST y:\%1\ppoint goto ppoint1
md y:\%1\ppoint
goto ppoint1
point1
xcopy c:\*.ppt /s y:\%1\ppoint /i /D:3-5-99
goto adobe


:adobe
IF EXIST y:\%1\adobe goto adobe1
md y:\%1\adobe
goto adobe1
:adobe1
xcopy c:\*.pdf /s y:\%1\adobe /i /D:3-5-99
goto lotus

:lotus
IF EXIST y:\%1\lotus goto lotus1
md y:\%1\lotus
goto lotus1
:lotus1
xcopy c:\*.wk* /s y:\%1\lotus /i /D:3-5-99
goto exchng


:exchng
IF EXIST y:\%1\exchng goto exchng1
md y:\%1\exchng
goto exchng1
:exchng1
xcopy c:\*.ost /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.pst /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.arc /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.pab /s y:\%1\exchng /i /d:3-5-99

goto scuts

:scuts
IF EXIST y:\mbeaury\scuts goto scuts1
md y:\mbeaury\scuts
goto scuts1
:scuts1
xcopy c:\windows\profiles\*.lnk /s y:\%1\scuts /i /d:3-5-99
goto access

:ACCESS
IF EXIST y:\%1\access goto access1
md y:\%1\access
goto access1
:access1
xcopy c:\*.md? /s y:\%1\access /i /d:3-5-99
goto end


rem IF EXIST C:\NOTES got

Collapse -

Backup to the network

by Lkoller In reply to Backup to the network

I tried to respond without rating this and it wouldn't let me. I tried it and I couldn't get it to work. Probably because I have a ton of questions. My email is Lkoller@bigfoot.com.
Does the batch file start at the words "net use y:\\" after the rem statement? Is Word, Excel, etc on your network or local hard drive? Is there any additional comments/documentation? Thanks.

Collapse -

Backup to the network

by PrinterManager In reply to Backup to the network
Collapse -

Backup to the network

by Lkoller In reply to Backup to the network

No answer given.

Collapse -

Backup to the network

by Lkoller In reply to Backup to the network

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums