# FILEDIALOG doesn't show Map Network Drives

**URL:** <https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707>\
**Category:** questions\
**Tags:** clarion-11\
**Created:** [December 17, 2021, 9:59am UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707 "2021-12-17T09:59:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![irhobby](https://clarionhub.com/user_avatar/clarionhub.com/irhobby/32/5690_2.png) [@irhobby](https://clarionhub.com/u/irhobby)\
**Post date:** [December 17, 2021, 9:59am UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/1 "2021-12-17T09:59:48Z")

</div>

Hallo,

Is this a limitation or I do something wrong?  
I need to pick up a file/path from map drive.

Thank you for any help.

Robert

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 17, 2021, 3:09pm UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/3 "2021-12-17T15:09:06Z")

</div>

Use the FILE:LongName switch.

---

<div class="post-metadata">

**Author:** ![MarkGoldberg](https://clarionhub.com/user_avatar/clarionhub.com/markgoldberg/32/1511_2.png) [@MarkGoldberg](https://clarionhub.com/u/MarkGoldberg)\
**Post date:** [December 17, 2021, 4:17pm UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/4 "2021-12-17T16:17:42Z")

</div>

There is a security context to mapped drives  
IOW you will see different mappings when running escalated or not

You can set your manifest to control if your program is escalated or not

> **[Step 6: Create and Embed an Application Manifest (UAC)](https://learn.microsoft.com/en-us/previous-versions/bb756929(v=msdn.10)?redirectedfrom=MSDN)**

---

<div class="post-metadata">

**Author:** ![irhobby](https://clarionhub.com/user_avatar/clarionhub.com/irhobby/32/5690_2.png) [@irhobby](https://clarionhub.com/u/irhobby)\
**Post date:** [December 20, 2021, 8:41am UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/5 "2021-12-20T08:41:02Z")

</div>

Hallo,

I tried but doesn’t work.

---

<div class="post-metadata">

**Author:** ![irhobby](https://clarionhub.com/user_avatar/clarionhub.com/irhobby/32/5690_2.png) [@irhobby](https://clarionhub.com/u/irhobby)\
**Post date:** [December 20, 2021, 8:47am UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/6 "2021-12-20T08:47:01Z")

</div>

Hallo Mark,

I tried but doesn’t work.

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [December 20, 2021, 4:36pm UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/7 "2021-12-20T16:36:41Z")

</div>

Robert, I would check your code again.  
I just put together a quick test and tested in C9.1, C11 and C11.1 and mapped drives are showing for me regardless of use FILE:LongName or not.  
This is with a standard manifest and running asInvoker. As @MarkGoldberg pointed out, if you run the program asAdministrator instead of asInvoker, then you will not see the mapped drives.  
This is running on Windows 10.  
In this picture the F: is mapped to a network share.

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/7/70c51e5c98d5f198a1faaddf4b76e4672e4f4827.png)

This is my program:

```auto
  PROGRAM

  MAP
  END
loc:FileName cstring(256)

  CODE
  FILEDIALOG('No Long Attribute',loc:FileName)
  FILEDIALOG('No Long Attribute',loc:FileName,,FILE:LongName)

```

This is the manifest:

```auto
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="x86"
    name="SoftVelocity.Clarion9.Application"
    type="win32"
  />
  <description>Clarion application.</description>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        processorArchitecture="x86"
        publicKeyToken="6595b64144ccf1df"
        language="*"
      />
    </dependentAssembly>
  </dependency>
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application> 
      <!--The ID below indicates application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> 
      <!--The ID below indicates application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
      <!--The ID below indicates application support for Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
      <!--The ID below indicates application support for Windows 8-1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> 
    </application>
  </compatibility>
</assembly>

```

---

<div class="post-metadata">

**Author:** ![irhobby](https://clarionhub.com/user_avatar/clarionhub.com/irhobby/32/5690_2.png) [@irhobby](https://clarionhub.com/u/irhobby)\
**Post date:** [December 21, 2021, 7:12am UTC](https://clarionhub.com/t/filedialog-doesnt-show-map-network-drives/4707/8 "2021-12-21T07:12:32Z")

</div>

Hallo Rick,

Interesting. On my PC and customer doesn’t work.  
The same settings like you. (just that the manifest for 11.1 is little bit different at the end)  
I have C11.1 with SQL and I run the program asInvoker.

That’s really strange ..there must be something else. I will do more tests.  
Thank you for the help.
