We are attempting to create a html on the server side and use C$COPY to place that html file in the users MY DOCUMENTS folder. Below is the code that we are attempting to use...it fails on the C$COPY each time we attempt it. If we hard code in the entire path to a folder the logic works fine, but when we use the Acu-Defined logic below for <MYDOCUMENTS> it starts failing. We have many remote users and many shared folders and we would like to just default this file to the users documents folder instead of having to pick a share to use.
Does anyone have any clues how this can be done or what the issue might be?
MOVE ZEROS TO WS-ERROR.
MOVE SPACES TO WS-STRING.
DELIMITED BY SIZE
CALL "C$COPY" USING
CALL "C$DELETE" USING
Call "C$SYSTEM" Using
"EXPLORER <MYDOCUMENTS>\Test.html", 129.