# Can't access Network Drive through Gateway scheduled script

**URL:** <https://forum.inductiveautomation.com/t/cant-access-network-drive-through-gateway-scheduled-script/62052>\
**Category:** Ignition\
**Created:** [July 19, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/cant-access-network-drive-through-gateway-scheduled-script/62052 "2022-07-19T11:36:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skandan\_Vecham](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Skandan\_Vecham](https://forum.inductiveautomation.com/u/Skandan_Vecham)\
**Post date:** [July 19, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/cant-access-network-drive-through-gateway-scheduled-script/62052/1 "2022-07-19T11:36:20Z")

</div>

I am trying to access a specific file in a network drive through a gateway scheduled script. And I am unable to open that drive, it always gives me the error when I am just checking to see if the drive exists using os.listdir(r’U:'): No such file or directory: ‘U:’ .

I thought it might be a problem with me mapping my network drive, but I can run the same command in the gateway script console and I am getting a proper result. Any ideas?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 19, 2022, 11:49am UTC](https://forum.inductiveautomation.com/t/cant-access-network-drive-through-gateway-scheduled-script/62052/2 "2022-07-19T11:49:55Z")

</div>

Services are independent of the user logged into the desktop of the server. The gateway simply doesn’t see any drive mappings you do as a user. The gateway’s service wrapper can map drives in the service environment:

[https://docs.inductiveautomation.com/display/DOC81/Mapping+a+Network+Drive](https://docs.inductiveautomation.com/display/DOC81/Mapping+a+Network+Drive)
