Unless I'm doing something wrong, here two issues with the copy command.
Maybe someone can please check and try to reproduce.
1) First the FOLLOWLINKS option.
create a test-folder in RAM: or any other drive, a folder within this folder and a link which point to this folder. Some duplicate text files are in those folders and a link pointig to another folder in the root of the drive.
# Here the steps:
Code: Select all
CD RAM:
MAKEDIR Destination_Drawer1 Test_Drawer/Destination_Drawer2 ALL
ECHO "Hello" to RAM:destination_drawer1/textfile_in_destination_drawer1.txt
ECHO "Hello" to RAM:Test_Drawer/textfile_in_test_Drawer
ECHO "Hello" to RAM:Test_Drawer/Destination_Drawer2/textfile_in_destination_Drawer2
MAKELINK test_drawer/link_to_destination_drawer1 ram:Destination_Drawer1 SOFT
MAKELINK test_drawer/link_to_destination_drawer2 ram:test_Drawer/destination_drawer2 SOFT
- RAM:
|- destination_Drawer1
||- textfile_in_destination_Drawer1.txt
|- test_Drawer
||- textfile_in_test_Drawer
||- destination_Drawer2
|||- text_file_in_destination_Drawer2
||- link_to_destination_Drawer1
||- link_to_destination_Drawer2
Code: Select all
COPY RAM:Test_Drawer to Work:Test_Drawer_Copy ALL CLONE FOLLOWLINKS
- Work:
|-Test_Drawer_Copy
||-Destination_Drawer2
||-Text_file_in_test_drawer
If I understood correctly what the FOLLOWLINKS option should do, then at least the "link_to_destination_Drawer2"
should have been created.
2) the NOREQ Option
I can't make COPY to open a requester, not from a Shell, nor from a script, regardless what I throw at it, so the NOREQ Option has no function here.
can someone confirm my findings?Normally, COPY displays a requester if the COPY cannot continue for
some reason. When the NOREQ option is given, all requesters are
suppressed. This is useful in scripts and can prevent a COPY failure
from stopping the script while it waits for a response. For instance,
if a script calls for a certain file to be copied and the system cannot
find that file, normally the script would display a requester and would
wait until a response was given. With the NOREQ option, the COPY
command would be aborted and the script would continue.