
| Subject: | How to parse command line parameters from ini file to third party app |
| Posted by: | Richard Caruana |
| Date: | Fri, 26 Feb 2010 |
Hi,
I have an ini file ... owl.ini
which looks like..
..........................................................................
[PatientList-01]
1=005987 Smith,Mr Desmond
2=005901 West,Mr Denis
3=003199 East,Mrs Lynette
4=009981 Street,Miss Renee
5=009947 Boot,Mr Anthony
6=009158 Reel,Mr Piet
7=
8=
9=
[User-01]
Account=009151
Patient=009158
...........................................................................
The result I would like to achieve is to have an exe file which can do the same job as this Bat file If I run piet.bat file with the following-
C:\CSNImage\TW.EXE “-PC:\Images\009158-NPiet Reelâ€
this command then launches a third party app but with details from the main client program.
THE TRICK IS THOUGH THAT I WISH TO FORCE THE COMMAND LINE TO CHOOSE THE CURRENT PATIENT SHOWN IN SECTION...
[User-01]
Patient=009158
WHERE OBVIOUSLY THE PATIENT NUMBER CAN CHANGE.
where
1) -P is a parameter for where to store images EG C:\Images\009158
2) -N is a parameter for Name of client eg Piet Reel
ANY HELP IS ALWAYS APPRECIATED
RICHARD