I figured out why it not working(my previous post), but not how to fix it. It doesn't like %userprofile%. It doesn't translate it like it was suppose to. It litterly try's to use "%userprofile%" which doesn't exist. Can anyone help me with this? What am I doing wrong?
Stephen
btw: I also added these lines to the function:
if instr($path,"~") <> 0 $path = Fillvariable($path) endif
if instr($targetpath,"~") <> 0 $targetpath = Fillvariable($targetpath) endif
if instr($arguments,"~") <> 0 $arguments = Fillvariable($arguments) endif
if instr($startdir,"~") <> 0 $startdir = Fillvariable($startdir) endif
if instr($iconpath,"~") <> 0 $iconpath = Fillvariable($iconpath) endif
if instr($style,"~") <> 0 $style = Fillvariable($style) endif
they seem to help!
_________________________
Big dogs take Big Bites