Pass parameter from a batch

Cringer

ProgressTalk.com Moderator
Staff member
Hi all,

having a mental block - running a .bat to fire off a progress session with a .p (10.2A on windows). I want to pass a parameter from the command line of the batch to my .p. I know it's possible, I just can't remember how!! :)

Cheers

James
 

j4n

Member
prowin32.exe -p myProg.p -param myfirstparam,mysecondparam,mythirdparam

in myProg.p

param1 = ENTRY(1,SESSION:pARAMETER,",").

and so on...
 

Cringer

ProgressTalk.com Moderator
Staff member
Good point, well made! :)

As it happens it's just a script I want to run on my local machine so in this case prowin32 is fine.
 

Rob Fitzpatrick

ProgressTalk.com Sponsor
You should use _ progres rather than prowin32... Prowin32 won't work on a 64 bit system...

Tom, can you clarify what you mean by "on a 64-bit system"? Do you mean "using a product like 64-bit Client Networking", as opposed to "on a 64-bit OS"? I'm running prowin32 on 64-bit Windows 7 without issues (32-bit 10.2B and 32-bit 11.0 products).
 

TomBascom

Curmudgeon
If you install the 64 bit OE database engine there is no prowin32. Even if there was prowin32 cannot connect to a 64 bit OE using a self-service connection.

Batch processes shouldn't be prowin32 anyway. It's just a bad habit that people have been getting away with.
 
Top