Simple problem: program parameters

HARRY

Active Member
Licensed User
Longtime User
Hi,

It must be a simple problem, but I cannot find the solution.
I want to start a program written with Basic 4PPC with a program parameter, e.g. MyProgram.exe with as parameter How should I do it?. The ? is not important. Should I use quotes, handle it like 5 parameters?
I tried a lot of thinks, without success so far.

Please, a little bit of help.

Harry
 

specci48

Well-Known Member
Licensed User
Longtime User
Hello Harry,

it's a common problem searching for something you don't know... :sign0161:

But as you already mentoined, the easy answer can be found here: Command Line Arguments.



specci48
 

HARRY

Active Member
Licensed User
Longtime User
Hallo specci48,

Finding the parameters in the program is not the problem, but how to specify those in the activation of the program.

Harry
 

mjcoon

Well-Known Member
Licensed User
Finding the parameters in the program is not the problem, but how to specify those in the activation of the program./QUOTE]

I thought that was what you meant, but you are not telling how you activate. By Shell()? Shortcut?

Mike.
 

berndgoedecke

Active Member
Licensed User
Longtime User
you can actvate it in the windowsw cmd window: commandline.exe /command for example. "Shell" should compute also.
More than one parameters are possible by split string.

Best regards
berndgoedecke
 

Attachments

  • cmd.zip
    13.9 KB · Views: 197

HARRY

Active Member
Licensed User
Longtime User
Hi guys,

Thanks for your help! I have taken another approach to solve this small problem.

The user has to give a description of one item in his own language. I ask that description once and store it in the Registry and also save it for recovery after a hard reset.

Harry
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…