Shared Folders work but can't run .exe on them

Discussions related to using VirtualBox on Windows hosts.

Shared Folders work but can't run .exe on them

Postby MrAnalogy » 29. Nov 2016, 23:23

I've got Windows 10 build 14393.447 on the Gues.
Host is windows 7 Pro

From Guest:
I can see shared folders (which I have Shared as v:\)
I can SEE files on that V: drive
But when I try to RUN an .exe it fails with no error.
I can create files on V:\ and also copy the file from v:\
If I run it as Admin I get: specified path does not exist. check the path, and then try again.

Uninstalled & reinstalled VM Guest Additions
I disconnected the Shared network folder and reconnected it.
Virtual Box is up to date (just installed latest version today)
No luck.
MrAnalogy
 
Posts: 3
Joined: 14. Aug 2016, 00:02

Re: Shared Folders work but can't run .exe on them

Postby socratis » 30. Nov 2016, 00:58

This is part of a how-to I've been meaning to post for some time, still unfinished, but the following passage should apply in your case.


Note 1: If you run your executable from a VirtualBox share that is not mapped (does not a drive letter assigned), you get the following error:
    Unable to assign a drive letter
    to the script path \\VBoxSvr\Share\Executable
Note 2: If you run your executable from a VirtualBox share that is mapped (has a drive letter assigned), you get the following error:
    W:\Share\Executable.exe
    The specified path does not exist.
    Check the path and then try again.
Solution 1: Disable UAC control temporarily. Then run your program from a mapped share (like W:\). You can turn off the network altogether if you don't feel protected enough with the UAC turned off.
Solution 2: Copy the whole executable sub-directory in the VM.

Explanation
When a user connects to a network share, Windows tries to connect with two sets of credentials. This fails due to the UAC control. This is done so by design. For references and further reading on previous reports and the reasoning behind it (read especially the Microsoft links):
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25984
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Shared Folders work but can't run .exe on them

Postby scottgus1 » 30. Nov 2016, 18:18

FWIW, if you're trying to run the exe using a Guest Additions Shared Folder, know that Guest Additions Shared Folders are really just for file copying between the host and the guest, not for running programs, databases, etc. like a real shared folder can do.
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
Volunteer
 
Posts: 4502
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 12 guests