Try this and take a look at the paths
code:
$LMHostsPath = "@LanRoot\drivers\etc\"
$LMH = "$LMHostsPath" + "lmhosts."
$num = 10
$string = "%comspec% /c ren $LMH$num $LMH"
? 'Executing '+$string
shell $string



[ 01. October 2002, 22:15: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.