For Programmers: Free Programming Magazines  


Home > Archive > Cobol > July 2007 > How to accept argument when .exe file is execute









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to accept argument when .exe file is execute
dahuzizyd@gmail.com

2007-07-31, 7:55 am

Hi All:

I used Pro*Cobol to compile a .pco file to .exe file .

Now i want to accept argument in console .
Such as :
In windows command window:
C:\>MyProgram.exe argument1

When the MyProgram.exe is Loading. cobol code will accept argument1 as
the file name I want to used.
I used ACCEPT ... FROM COMMAND-LINE. but has no effect.

Somebody can help me??

Thanks a lot !!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com