I use this sample script several times each month as a starting point for login scripts for Windows domains and workgroups.

Simply change the drive letter, computer name and share name to suite your situation. "Sleep.exe" is used to slow down looping if an error is encountered.

· Login.bat ·
@echo off
c:
cd\Tech
net use S: /d /y

:ch_loop
sleep 1
net use S: \\pcwithfiles\sharename password /user:pcwithfiles\administrator
if errorlevel 1 goto ch_loop
if not exist S: goto ch_loop

:ch_end

This information has been updated from my previous blog entry:
Simple Login Script for mapping drives on Windows XP

WizYo Document Index

November 25, 2009
12:20 AM Wednesday

Login Batch Script
-modified-
9:19 AM Monday
May 14, 2007
-created-
9:08 AM Monday
May 14, 2007

Google


it's private

Tech Support
WizYo
Sytes Net

Tools
~hot~ Links

Tech Support


this site !

Guestbook
Guests

Free Hit Counter

Tell a friend about Tech Support available
here !