Need advice.. win2k login script/bat file for remote folder access/backup

jimmyhaha

Platinum Member
Jan 7, 2001
2,851
0
0
here is the scenario

user1 log in a LAN.
need to access the Remote file in other PC on the same lan

instead of being prompt for password, is there a way to automate it ?
the shared folder in the LAN is password-protected...

btw, does anyone know the script/bat file to backup a local file to a non-local folder on LAN ?

Pls advice
thanks
 

CplHicks

Senior member
Nov 29, 2000
309
0
0
If both computers are on the same domain you can just log on as a domain user and you won't be prompted for user/pwd. Otherwise just create an account on the both computers with the same user/pwd.
 

torreyk

Member
Aug 31, 2001
108
0
0
You can put a NET USE command in the logiin script to map a drive to the folder and have it pass along a username and password of your choise for the connection, do a NET USE /? for more info.
 

ledzepp98

Golden Member
Oct 31, 2000
1,449
0
0
you can use the NET USE command as mentioned, or you can map the shared folder and have the computer you called user1 logon at startup (that way the connection is established). this way the person on user1 shouldn't have to put in a password when accessing the file.

as for backing up a file, you can just create a batch file to simply copy the file over... here's hpw i would do it if this is what you were asking:

create a .txt file (with notepad) with the following line:

copy x:\folder\file_to_backup \\server\drive\folder

or

copy x:\folder\file_to_backup x:\folder

the first option would be used if the folder on the lan being copied to is not mapped.
replace x:\folder\file_to_backup with the location and file you are backing up
you might need to use short names such as c:\docume~1 to get to the documents and settings folder

the second option would be used if you mapped the shared lan folder and it has a drive letter on the computer user1
again, replace the generic terms withn the actual folder and filename

finally, save the file and change the extension from .txt to .bat
just double click the file to run it or you can use the windows task manager to schedule it to run at set times.


here is an example of a bat file i use to backup 3 excel files to 2 compiters on my lan and a backup drive on my computer:

copy c:\compum~1\*.xls \\K6-3\c\windows\desktop

copy c:\compum~1\*.xls \\E6gev\c\windows\desktop

copy c:\compum~1\*.xls g:\backup~1\SDbak
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |