# Copying files from network location in windows

**URL:** <https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [May 2, 2022, 12:13am UTC](https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097 "2022-05-02T00:13:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorge.galvez](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jorge.galvez](https://forum.inductiveautomation.com/u/jorge.galvez)\
**Post date:** [May 2, 2022, 12:13am UTC](https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097/1 "2022-05-02T00:13:27Z")

</div>

Hello,  
I’m trying to copy files from different network locations in Windows by using shutil.copyfile but I got it working only from the script console in designer and not from a scheduled script which is what I need to perform, for example, everyday at the same time. The error I get from the gateway logs is `'No such file or directory'`, however, the path is accesible from Windows file explorer and from both network drive and by typing the network IP address of the target computer. Let me know if there is some way to solve this.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [May 2, 2022, 12:50am UTC](https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097/2 "2022-05-02T00:50:23Z")

</div>

The user that the ignition service is run under needs permission to those network resources. It’s probably using the default “System” which won’t have access most likely.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 2, 2022, 1:10am UTC](https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097/3 "2022-05-02T01:10:17Z")

</div>

Try this: [Mapping a Network Drive - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Mapping+a+Network+Drive)

---

<div class="post-metadata">

**Author:** ![jorge.galvez](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jorge.galvez](https://forum.inductiveautomation.com/u/jorge.galvez)\
**Post date:** [May 2, 2022, 7:30pm UTC](https://forum.inductiveautomation.com/t/copying-files-from-network-location-in-windows/59097/4 "2022-05-02T19:30:03Z")

</div>

Got it working! Thank you Kevin. Important to check that the shared folder at network target must include the same user and password in permissions as set on the wrapper config.
