I have a script which moves and renames files from an AS400 directory to a Windows directory on a separate server. The successful process moves data from a folder created in a library on the AS400. For technical reasons the AS400 developer moved the source data to the root on the AS400.
Now that I have modified the script to point to the different source I get an error “Invalid procedure call or argument”. My question is can we move data from the AS400 root or does it have to reside within a library? I can still move files from within the library but not from the root. Any advice? Thanks!
If I’m reading your comment (and your previous question) correctly, you need to be able to move a file with the ability to overwrite. One way to do that is by copying and deleting.
CopyFilewill overwrite a file by default.See the following MSDN pages for
CopyFileandDeleteFilefor additional details.