# How to use scripting to open a folder

**URL:** <https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [February 26, 2021, 3:48am UTC](https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856 "2021-02-26T03:48:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yifeiliu08](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yifeiliu08](https://forum.inductiveautomation.com/u/yifeiliu08)\
**Post date:** [February 26, 2021, 3:48am UTC](https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856/1 "2021-02-26T03:48:52Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/883d870cb5412545cc4bd475a7043626c234c4c7.png)  
I have a network path:  
\192.168.17.9\Pictures\CureSheetPhoto\SparePartsDocument\999820\COPP PISTSLKIT 2  
I want to know whether I can use scripting by click one button to open that folder like the following picture

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/d/4d10d74fdd2965699ba3d0ff2efcc3ecb8603ec9.png)

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 26, 2021, 4:32am UTC](https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856/2 "2021-02-26T04:32:00Z")

</div>

```auto
system.net.openURL("C:\\Temp\\testing\\")

```

Make sure your gateway has access to the share (in ignition.conf)

---

<div class="post-metadata">

**Author:** ![yifeiliu08](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yifeiliu08](https://forum.inductiveautomation.com/u/yifeiliu08)\
**Post date:** [February 26, 2021, 4:39am UTC](https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856/3 "2021-02-26T04:39:35Z")

</div>

> [@Matrix\_Engineering](#):
>
> system.net.openURL("C:\Temp\testing\")

it works， thanks a lot

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 26, 2021, 6:49am UTC](https://forum.inductiveautomation.com/t/how-to-use-scripting-to-open-a-folder/43856/4 "2021-02-26T06:49:39Z")

</div>

You can also replace all the backslashes with forwardslashes, then you won’t have to escape them
