MoveFile to shared drives

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
nodochau
Pro Scripter
Posts: 131
Joined: Wed Jan 16, 2019 12:59 pm

MoveFile to shared drives

Post by nodochau » Fri Oct 16, 2020 2:58 pm

Hello All,
I am trying to move some files from local C to my shared network drives.
I got CF_RESULT=True and CF_RESULT_CODE=183 WITH MOVEFILE command
But I successfully moved files locally (within C drive)
Please help

Thanks

nodochau
Pro Scripter
Posts: 131
Joined: Wed Jan 16, 2019 12:59 pm

Re: MoveFile to shared drives

Post by nodochau » Fri Oct 16, 2020 3:29 pm

Just found the solution in this forum. :D

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: MoveFile to shared drives

Post by Dorian (MJT support) » Fri Oct 16, 2020 3:44 pm

Please share it to help others.
Yes, we have a Custom Scripting Service. Message me or go here

nodochau
Pro Scripter
Posts: 131
Joined: Wed Jan 16, 2019 12:59 pm

Re: MoveFile to shared drives

Post by nodochau » Fri Oct 16, 2020 5:13 pm

the command MoveFile>file_path,destination
let>file_path=C:\folder_names\file_to_move.txt
let>destination=Y:\destination_folder\file_moved.txt (Y is the shared drive in the network)
I got CF_RESULT_CODE=183
So I changed the destination=\\server_name\name_of_shared_drive(Y)\destination_folder\file_moved.txt
Then the issue is fixed

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts