Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shortcut to login script

Status
Not open for further replies.

jasona45

Technical User
May 15, 2003
37
0
0
US
I have a w2k pro computer and have a shortcut mapped to my server login script using unc path. It is a w2k server. When I click on shortcut I get a "script error, failed to find /open script, but when I move the same shortcut to my c: drive it runs with no problem. Is there any to get the shortcut to the login script to run from my desktop?

Thanks
 
Post the script line in error within consistent context.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
@echo off
REM ----------------- Updated by ----------------------
REM --------------------------------------------------------------------
REM This batch file calls the workwell login script for windows 9x and
REM Window NT computers.
REM --------------------------------------------------------------------
REM

Echo Please be patient as your login script runs!
REM Echo.
Echo.
Echo Checking Operating System Type and Version

if "%OS%" == "Windows_NT" GOTO NT
if "%OS%" == "" GOTO WIN9x

:WIN9x
REM Windows 9x Script
Echo.
Echo Windows 9x Detected
Echo.
%0\..\kix32.exe kixtart.scr
goto end

:NT
REM Windows NT Script
Echo.
Echo Windows NT Detected
Echo.
@echo off
if exist "c:\kix32.exe" GOTO LOCAL

%0\..\kix32.exe kixntwrk.scr
goto end

:LOCAL
xcopy %0\..\kixntwrk.scr c:\ /d /y
c:\kix32.exe kixntwrk.scr
goto end


:end

This is the beginning of the kix script the batch file calls on.


*****************************************************************************
;**************** Kix Script for Windows NT LAN users ************************
;
;******************* Updated by ***************************
;*****************************************************************************

IF @WKSTA="WORKWELL1"
GOTO "ENDSCRIPT"
ENDIF

settime @LSERVER

use n: "\\workwell1\shares"

$hdir="\\workwell1\" + @userid + '$$'
use i: $hdir

 
I'm afraid you're in a wrong forum. I don't see anything related to VBScript in your post.
 
Hello jasona45,

I think the problem for you to resolve is to determine what exactly gives:
Code:
    %0\..\

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top