Hi everyone,
I have a perl script that opens an Access mdb thus:
system("C:\\Doc uments\ and\ Settings\\asear le\\My\ Documents\\iwh_ dev\\MyAccessDB .mdb");
This works absolutely fine and, indeed, the perl script happily terminates cleanly when I close the external application.
Now I would like to implement more automation by adding parameters to the system() call. I need to add the following two parameters:
/runtime (to start Access in runtime mode)
/cmd startfull (to pass the command parameter 'startfull' as text)
I tried tagging these commands on the end of my basic command thus:
... MyAccessDB.mdb\ \/runtime\ \/cmd\ starttest");
but perl simply complained that the file could not be found (i.e. the parameters were interpreted as part of the file name of the file to be called).
So my question now is whether these parameters need to be passed as separate arguments to the system() call?
Any tips here would be a great help.
Regards,
Alan Searle.
I have a perl script that opens an Access mdb thus:
system("C:\\Doc uments\ and\ Settings\\asear le\\My\ Documents\\iwh_ dev\\MyAccessDB .mdb");
This works absolutely fine and, indeed, the perl script happily terminates cleanly when I close the external application.
Now I would like to implement more automation by adding parameters to the system() call. I need to add the following two parameters:
/runtime (to start Access in runtime mode)
/cmd startfull (to pass the command parameter 'startfull' as text)
I tried tagging these commands on the end of my basic command thus:
... MyAccessDB.mdb\ \/runtime\ \/cmd\ starttest");
but perl simply complained that the file could not be found (i.e. the parameters were interpreted as part of the file name of the file to be called).
So my question now is whether these parameters need to be passed as separate arguments to the system() call?
Any tips here would be a great help.
Regards,
Alan Searle.
Comment