IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New little closer
@echo off

rem clear any existing drive mappings
net use * /delete /y

rem map label drives
net use K: \\\\server\\apps
net use O: \\\\server\\labels

rem set time
net time \\\\server /set /yes

if not exist K: goto LogOff
rem echo "K: exists"
if not exist O: goto LogOff
rem echo "O: exists"
rem echo "Drives Mapped OK"
exit

:Logoff
rem echo "log off user"
rundll32.exe shell32.dll,SHExitWindowsEx 4


logoff works OK(the rundll line), but the NET USE command prompts the user for input if the ID/password was wrong:
The password is invalid for \\\\SERVER\\APPS. For more information, contact your network administrator.
Type the password for \\RTRON_PDC1\\APPS:


Having the user reenter their password would be fine except that the problem is they'll often forget to change the user ID, so the password would never be correct. Anybody know if there's a way to make NET USE just fail instead of prompt?
Darrell Spice, Jr.                      [link|http://www.spiceware.org/cgi-bin/spa.pl?album=./Artistic%20Overpass|Artistic Overpass]\n[link|http://www.spiceware.org/|SpiceWare] - We don't do Windows, it's too much of a chore
New "net use K: \\\\server\\apps > NUL" ?
     98 login script - (SpiceWare) - (9)
         Don't have a 98 machine here at work, so from top of head... - (jbrabeck)
         Re: 98 login script - (deSitter) - (1)
             thanx - (SpiceWare)
         little closer - (SpiceWare) - (1)
             "net use K: \\\\server\\apps > NUL" ? -NT - (CRConrad)
         solution - (SpiceWare) - (3)
             One question... - (jbrabeck) - (2)
                 startup folder - (SpiceWare) - (1)
                     Thanks -NT - (jbrabeck)

Too bad dark languages rarely survive...
36 ms