Logon script syntax problem
Posted on 2006-05-30
my collegue (who's now left0 wrote a logon script for me but my IT manager wont implement it as it has a syntax error yet he wontr tekll me what's wrong with it- can someone decipher whats syntaxically wrong with the script, it basically copies mde's and ade's from a shared folder into the c:drive of the pc the user has started:
::Delete old PGSR shortcut
del "%userprofile%\desktop\PGS Applications.lnk"
::Copy the file we need from draugr
copy \\draugr\PGS_SS_APPS\PGSApps.lnk "%userprofile%\desktop\PGS Applications.lnk"
::Kill old C drive based PGSR files
rmdir C:\pgsr /s /q
::Create a directory
mkdir c:\"JS Utilities"
::Create desktop shortcut
Copy \\sqlserver\admin\js\pgjs.lnk "%userprofile%\desktop"
::Copy PGJS Grades Entry for Greg
Copy \\sqlserver\admin\JS\"PGJS Grades Entry.mdb" C:\"JS Utilities"\"PGJS Grades Entry.mde"
::Delete existing PGJS
del C:\"Documents and Settings"\"%username%"\Desktop\"PGJS Grades Entry.mde"