Denis,
Yes you can pass parameters to an EXE file. There are a few things you have to consider:
- The first line of your main program must start with a PARAMETER statement
- Parameters passed to an exe are passed as character type. If you need different types, then you have to parse/convert the parameter
- Omitted parameters are passed as .F.
- Multiple parameters are seperated with a space
So you could call your exe like this:
MyPrg.exe DenisFiler
HTH
>I want to call my VFP myprg.exe file and pass a character parameter (a users name) to streamline logging in. It works fine when in Fox using "do myprg with 'username'". Can this be done on a desktop shortcut? Thanks in advance. I should know this...
Daniel