I tried to write the following code, but I'm not sure I have the syntax correct. The script runs without error (I know because its printing the text in the AT(x,x) command) but it doesnt do what its supposed to.
The user accounts are domain users only, all logging on to Windows XP. I am trying to copy down one of two different desktops based on the user group they are in. The path to the desktop is therefore c:\documents and settings\'+@SERID++'\desktop - however I think I have the syntax wrong somewhere.
Could someone please show me the error of my ways ?
code:
If INGROUP("KS1")
use X: \\SCHOOLNT\KS1DESKTOP
del "C:\DOCUMENTS AND SETTINGS\'+@USERID+'\DESKTOP\*.*"
copy "X:\*.*" "C:\DOCUMENTS AND SETTINGS\'+@USERID+'\DESKTOP"
use X: /d
AT(3,4) "KS1"
ENDIF
If INGROUP("KS2")
use X: \\SCHOOLNT\KS2DESKTOP
del "C:\DOCUMENTS AND SETTINGS\'+@USERID+'\ALLUSERS\DESKTOP\*.*"
copy "X:\*.*" "C:\DOCUMENTS AND SETTINGS\'+@USERID+'\DESKTOP"
use X: /d
AT(3,4) "KS2"
ENDIF
AT(5,4) "RAN"