Please refer the attached script for copying a directory to the Network Share.
- This script should be Run as System User.
- Please edit parameters such as src_path, dest_fname, share_path, share_user, share_pass for copying the directory according to your requirement.
- "share_user" - This is said to be the network share username for access
- "share_pass" -This is said to be the network share password for access
- "src_path" - Provide the path of the folder where the file residing
- " share_path" - Provide the path for the network shared folder
- "des_fname" - This is said to be the destination folder name which has not been exist earlier on the share path
It should be run as System User.