For Programmers: Free Programming Magazines  


Home > Archive > Cobol > July 2007 > How to accept parameter 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 parameter 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 parameterin console .
Such as :
In windows command window:
C:\>MyProgram.exe parameter1


When the MyProgram.exe is Loading. cobol code will accept parameter1
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 !!

Kellie Fitton

2007-07-31, 6:55 pm

On Jul 31, 3:21 am, dahuzi...@gmail.com wrote:
> Hi All:
>
> I used Pro*Cobol to compile a .pco file to .exe file .
>
> Now i want to accept parameterin console .
> Such as :
> In windows command window:
> C:\>MyProgram.exe parameter1
>
> When the MyProgram.exe is Loading. cobol code will accept parameter1
> 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 !!



Hi,

The following webinks should give you some pointers:

http://www.simotime.com/nxcsys01.htm

http://www.simotime.com/simoexec.htm

Kellie.


Sponsored Links







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

Copyright 2008 codecomments.com