Fortinet white logo
Fortinet white logo

Mapping a network drive after tunnel connection

Mapping a network drive after tunnel connection

The script maps a network drive and copies some files after the tunnel is connected.

<on_connect>

<script>

<os>windows</os>

<script>

<script>

<![CDATA[

net use x: \\192.168.10.3\ftpshare /user:Honey Boo Boo

md c:\test

copy x:\PDF\*.* c:\test

]]>

</script>

</script>

</script>

</on_connect>

Mapping a network drive after tunnel connection

Mapping a network drive after tunnel connection

The script maps a network drive and copies some files after the tunnel is connected.

<on_connect>

<script>

<os>windows</os>

<script>

<script>

<![CDATA[

net use x: \\192.168.10.3\ftpshare /user:Honey Boo Boo

md c:\test

copy x:\PDF\*.* c:\test

]]>

</script>

</script>

</script>

</on_connect>