JonCocktoastin
IS-IT--Management
Hello,
I'm trying to get a login script to work that checks to see if a shortcut is on a user's desktop first. Then creates it if necessary. Is there any syntax problems with what I have or is this the wrong approach to take? (2000 client/server)
TIA
@ECHO OFF
IF NOT EXIST "C:\Documents and Settings\%username%\Desktop\app.lnk"
call \\domaincont\netlogon\nss\createshortcuts.exe
IF "%OS%" == "Windows_NT" %0\..\KIX32\KIX32.EXE %0\..\DEPT.SCR
IF "%OS%" == "" Z:\KIX32\KIX32.EXE Z:\DEPT.SCR
PAUSE
I'm trying to get a login script to work that checks to see if a shortcut is on a user's desktop first. Then creates it if necessary. Is there any syntax problems with what I have or is this the wrong approach to take? (2000 client/server)
TIA
@ECHO OFF
IF NOT EXIST "C:\Documents and Settings\%username%\Desktop\app.lnk"
call \\domaincont\netlogon\nss\createshortcuts.exe
IF "%OS%" == "Windows_NT" %0\..\KIX32\KIX32.EXE %0\..\DEPT.SCR
IF "%OS%" == "" Z:\KIX32\KIX32.EXE Z:\DEPT.SCR
PAUSE