Here is what I have so far with some big time help from other users of this post of course... cls
???? Can I type the below file to screen without the shell type command ???
shell "%comspec% /c TYPE %WINDIR%\Kix\Warning.txt"
$octetarray=split("@ipaddress0",".")
$location=strip($octetarray[3])
IF @wksta = "COMM1" or @wksta = "COMM2" or @wksta = "COMM3"
$TSUser="Y"
else
$TSUser="N"
endif
if $location="1"
"** Welcome Murfreesboro User **"
$=addprinterconnection("\\PSERVE01\Aphrodite")
$=addprinterconnection("\\PSERVE01\Apollo")
$=addprinterconnection("\\PSERVE01\Athena")
$=addprinterconnection("\\PSERVE01\Carpo")
$=addprinterconnection("\\PSERVE01\Jules")
$=addprinterconnection("\\PSERVE01\Venus-PCL6")
select
case ingroup("Aphrodite Default")
$=SetDefaultPrinter("\\PSERVE01\Aphrodite")
case ingroup("Apollo Default")
$=SetDefaultPrinter("\\PSERVE01\Apollo")
case ingroup("Athena Default")
$=SetDefaultPrinter("\\PSERVE01\Athena")
case ingroup("Carpo Default")
$=SetDefaultPrinter("\\PSERVE01\Carpo")
case ingroup("Jules Default")
$=SetDefaultPrinter("\\PSERVE01\Jules")
case ingroup("Local Default")
"Local printer left as default..."
case ingroup("TMT User") and $TSUser="y"
$=addprinterconnection("\\AUSTIN\BC02")
endselect
endif
if $location="3"
"** Welcome Portland User **"
$=addprinterconnection("\\PSERVE01\PORTTN-LASER")
$=addprinterconnection("\\PSERVE01\PORTSHOP")
select
case ingroup("PORTTN-LASER Default")
$=SetDefaultPrinter("\\PSERVE01\PORTTN-LASER")
case ingroup("PORTSHOP Default")
$=SetDefaultPrinter("\\PSERVE01\PORTSHOP")
case ingroup("TMT User") and $TSUser="y"
$=addprinterconnection("\\PORT-SHOP3\BC03")
endselect
endif
if ingroup("Laptop User")
"Laptop User= Yes"
else
"Laptop User= No"
endif
settime "\\XAVIER"
USE S: "\\FFLEET\SHARED"
USE P: "\\NEO\APPS"
if exist(%WINDIR%\Kix\NP-Ver1.0.txt)=0
copy "%WINDIR%\Login\NewProf.exe" "C:\Program Files\Common Files\System\MAPI\1033\NT"
copy "%WINDIR%\Login\NewProf.exe
??? Write file above to drive as cookie file ???
endif
if exist("%WINDIR%\Login\%username%.txt")=0
"FirstFleet IS Department Generating Outlook Profile..."
shell "%comspec% /c %WINDIR%\Login\newprof.exe -P %WINDIR%\Login\OutlookLap.prf > %WINDIR%\Login\%username%.txt"
endif
shell "%comspec% /c %WINDIR%\Login\regini.exe %WINDIR%\Login\OfficePathsLap.ini"
quit
Where the ??? are is where I have questions. Can anyone look at this and give me some quick advice?
Thanks