# Backslash escape on Gateway Event Script

**URL:** <https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465>\
**Category:** Ignition\
**Created:** [December 19, 2014, 4:11pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465 "2014-12-19T16:11:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreed7164](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreed7164](https://forum.inductiveautomation.com/u/sreed7164)\
**Post date:** [December 19, 2014, 4:11pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465/1 "2014-12-19T16:11:14Z")

</div>

I have a script that is pulling in a CSV file and dumping it into SQL every once in awhile (Project.FieldData.CSVtoSQL). I’m trying to run the script from the gateway for a number of reasons.

In the script I have a line that reads ‘inputFile=“M:\Vicon\SiteStatus - Current.csv”’

the script was written and tested running on the client side. After it was all working I added in a tag to call it via the Gateway Tag Change Script.

When I run it on the gateway machine it returns an error (via system console) ‘No such file or directory: “M:\Vicon\SiteStatus - Current.csv”’. Note the double backslashes. I tried changing the script just have the single backslash. The error message was exactly the same.

Calling the script from a Client Tag Change Script works fine. any suggestions on how to get the gateway script to work?

Thanks!

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 19, 2014, 5:24pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465/2 "2014-12-19T17:24:12Z")

</div>

Does M: exist from the perspective of the gateway?

---

<div class="post-metadata">

**Author:** ![sreed7164](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreed7164](https://forum.inductiveautomation.com/u/sreed7164)\
**Post date:** [December 19, 2014, 5:46pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465/3 "2014-12-19T17:46:49Z")

</div>

Yes, M:\ is mapped and accessible on the gateway machine.

---

<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:** [December 19, 2014, 5:51pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465/4 "2014-12-19T17:51:39Z")

</div>

Using a mapped drive on the gateway requires some additional configuration, see this thread for more info: [inductiveautomation.com/for … ive#p46408](https://www.inductiveautomation.com/forum/viewtopic.php?f=50&t=11144&p=46408&hilit=mapped+drive#p46408)

---

<div class="post-metadata">

**Author:** ![sreed7164](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreed7164](https://forum.inductiveautomation.com/u/sreed7164)\
**Post date:** [December 19, 2014, 6:08pm UTC](https://forum.inductiveautomation.com/t/backslash-escape-on-gateway-event-script/9465/5 "2014-12-19T18:08:37Z")

</div>

Kevin - I had seen a post about mapped drives for some other issue but since the error messages were different I didn’t connect the two.

I (temporarily) put the file on a local drive, modified the script, and it worked like it was supposed to on the gateway. I will mess with the wrapper so I can get it with the network drive.

Thanks for your help!

Steve
