Ken,
>Are we talking about parameters or switches? I thought the original poster wanted to send a parameter 'clean' to his exe. If you put a dash, it becomes a switch, not a parameter -clean makes the exe look for a config named 'lean'. If you just send clean without the dash, you will get it in the exe as a parameter. I thought that was the way it works. I have been sending parameters into the exe since fox dos with no problems.
I think you've hit the nail on the head here ... when I tested it, I arbitrarily used /S and -S, which worked flawlessly. But, the original poster, Rodrigo, wanted to use -Clean. It just so happens that -C indicates a switch in FoxPro to look for a config file!!! A different word after that '-' would've worked fine.
~~Bonnie