Author Topic: Cannot see network mapped drives  (Read 4637 times)

0 Members and 1 Guest are viewing this topic.

norman

  • Administrator
  • Sr. Member
  • *****
  • Posts: 268
    • View Profile
    • Zipzap Computers Limited
Cannot see network mapped drives
« on: August 12, 2020, 11:52:46 am »
The symptom is that you go into My Computer and you can see a number of remote mapped drives but when you go into Datapath in TPN Invoicing they are not available.  :-[

This is caused by either running the program in Windows Elevated Mode OR installing the program as an Administrator (you should only ever install a program as a Standard User).

Check the properties of the shortcut that runs TPN Invoicing and ensure that RUN AS ADMINISTRATOR is not ticked.

Effectively when you look through Windows Explorer the drives have been 'mapped' for the current user. When you run an elevated program it dumps the mapped drives from being visible since it treats you as a different user who hasn't got these drives mapped. To work properly the mapped drives have to be mapped for all users rather then just the current one. The effect is no different to two users logging in one one computer with one mapping an external drive, when the other user logs in they won't see the mapped drive. You don't have to reinstall the program to fix this as it is not a program issue.

This effect would not be limited to TPN Invoicing but any program which ends up being run in Elevated Mode.

These explain what is happening :-

https://www.winability.com/how-to-make-elevated-programs-recognize-network-drives/
http://woshub.com/how-to-access-mapped-network-drives-from-the-elevated-apps/
https://answers.microsoft.com/en-us/windows/forum/windows8_1-files/mapped-drive-does-not-show-up-when-browing-from/be004a08-40a6-4758-879b-e2e62017c519
https://support.microsoft.com/en-gb/help/2019185/copying-files-from-a-mapped-drive-to-a-local-directory-fails-with-erro

Norman
 ;)



« Last Edit: August 20, 2020, 11:10:02 am by norman »