Corrected code:
code:
$id = dir("c:\lotus\notes\data\*.id")
if @error
? "there is an error"+ @serror+"You should notify the Administrator"
else
$sourcefile="c:\Lotus\Notes\Data\names.nsf"
$targetdir="\\orrm\domino\local_notes\"+$id+".id"
if not exist($targetdir)
md $targetdir
endif
copy $sourcefile $targetdir+"\"
endif

_________________________
There are two types of vessels, submarines and targets.