>Try
TestIt /S
Looks like if you specify file name including .exe extension it works otherwise it doesn't.
>
>>Hmmm ... well, I guess I shoulda checked this out before I posted anything. I just tried this myself in VFP7 and it works just fine. I simply had a Main.prg as follows:
>>
>>PARAMETERS cTest
>>
>>*-- testing switch parameters, - and /
>>
>>MESSAGEBOX('Parameter is: ' + cTest)
>>
>>RETURN
>>
>>I compiled this into an EXE and called it like this (either run from a shortcut or from Start | Run on the Windows Task Bar):
>>
>>TestIt.EXE /S
>>
>>I get a MessageBox that says 'Parameter is: /S'
>>
>>So, what are you guys doing that's different than that?
>>
>>
>>~~Bonnie
>>
>>
>>
>>>>Sergey,
>>>>
>>>>>You're right, you cannot use - or / and you cannot overwrite that. Just use miexe.exe clean
>>>>>>>>Wow! When did
this happen? I have old FPD2.0 apps running that use this command line switch paradigm (- or /) and they work just fine!! When did this change?
>>>>
>>>>~~Bonnie
>>>< snip >
>>>
>>>Hi Bonnie,
>>>
>>>I've no idea. I thought that it always worked this way.
***********
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.
Dr. Ken A. McGinnis
Healthcare software design