[Migrated content. Thread originally posted on 19 September 2007]
Hello all,I am trying to transfer a file through the C$COPY command and then have it opened in the appropriate associated program. I do not necessarily know the actual program that is being called.
For example, I am trying to open a PDF file in the appropriate program by doing the following:
[INDENT]
call "C$COPY" using "sample.pdf" "@[DISPLAY]:C:\\SAMPLE.PDF" giving return-status.
call "C$SYSTEM" using "C:\\SAMPLE.PDF", 129 giving return-status.
[/INDENT]
The file transfers properly but does not start the program, in this case Adobe reader. I get a return-status of "95".
Typing "C:\\SAMPLE.PDF" from the command prompt (any directory) works fine. Typing the same thing in the Start -> Run box does likewise.
I suspect I am missing something really basic - possibly the switch in the "C$SYSTEM" call or maybe I should preface the file name with something like "start "?
Any help would be greatly appreciated.



