robert_s wrote: c:\Documents and Settings\user\My Documents\Prog\Prog.exe %1 Is it correct? Be sure and put double-quotes around the %1. robert_s wrote: its a bit silly to have one long string as it will be a hassel to separate one argument from the other as the are blank spaces all over the place so it will be hard to determine where to split it. Can you use the CCommandLineInfo class? If not, __argv[1] is always available.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen