That's an extremely messy solution.
Try this instead:
http://www.abandonia.com/vbullet/showthread.php?t=28964
The idea is to associate the config files so that opening one automatically runs DOSBox with it. Then you don't need to muck around with target settings. Shortcut to config, set icon to shortcut, done.
Been using this since I've posted that tutorial, works like a charm.