@echo off rem Alan Kaplan alan@akaplan.com www.akaplan.com, www.msdinc.com rem This gives sends shortcuts to remote NT/2000 users desktop if "%1"=="" goto syntax rem check connect if not exist \\%1\admin$\win.ini goto notfind rem unremark next line to do a log file rem echo %1,Done >> c:\Updatelog.csv rem nt test rem this also is profile directory for NT 4 to NT2K clients if exist "\\%1\admin$\profiles\default user" set pdir=admin$\profiles&goto main rem Win2k test for most likely drives for %%x in (c,d,e) do if exist "\\%1\%%x$\Documents and Settings\Default User" set pdir=%%x$\Documents and Settings& goto main :main c: rem delete old shortcuts del /s "\\%1\%pdir%\MyWebsite*.url" del /s "\\%1\%pdir%\Myprogram*.lnk" rem copy links... copy "\\Server\share\de'Medici.url" "\\%1\%pdir%\all users\desktop" copy "\\Server\Share\hr link*" "\\%1\%pdir%\all users\start menu" rem optional copy hosts or lmhosts file rem copy "\\Server\Share\*hosts" "\\%1\admin$\system32\drivers\etc goto end :notfind echo Could not reach \\%1\Admin$ rem unremark next line to do a log file rem echo %1,Failed >> c:\Updatelog.csv goto end :syntax cls echo This program sends basic links and shortcuts to remote PC echo syntax: %0 computername pause :end set pdir=