Access Denied to Folder (Windows 10)


Hi,  

I have checked all the prior forum questions on this topic, but none of the options seem to be working for me. 


I am creating an output file that goes into a specific folder for getting MP3 file information.


When I run inside of Visual Studio Community 15, it works great ... no errors. When I take the EXE and create a new folder for the actual application and run by itself is when I get the error. I have tried turning on the UAC to Admin rights, with no luck.


Here is my code



```
Private Sub cmdCreateFile_Click(sender As Object, e As EventArgs) Handles cmdCreateFile.Click
        Dim InFolder As String = txtFolderToBrowse.Text
        Dim sInFile As String
        Dim sTitle As String
        Dim sArtist As String
        Dim MyData As MediaID3Structure
        Dim sOutput As String
        Dim sCurrentPath As String
        Dim filePath As String
        Dim fileName As String
        Dim swFile As StreamWriter

        Try
            If txtFolderToBrowse.Text = "" Then
                MsgBox("You haven't selected a folder that has MP3 files")
                txtFolderToBrowse.Focus()
                Exit Sub
            End If

            If VisualBasic.Left(InFolder, 1) <> "\" Then
                InFolder = InFolder & "\"
            End If

            sCurrentPath = Application.StartupPath & "\SongFilesForUpload\"

            fileName = "MusicFiles_" & Format(Now(), "yyyyMMdd_hhmmss") & ".csv"

            filePath = Path.Combine(sCurrentPath, fileName)

            Dim OutFile As String = filePath

            swFile = New System.IO.StreamWriter(OutFile)
            sOutput = "Titile,Artist"
            swFile.WriteLine(sOutput)

            For Each i As String In Directory.GetFiles(InFolder, "*.mp3")
                Try
                    sInFile = Path.GetFileName(i)    'Get name of file so that you can get the information

                    MyData = GetMediaData(InFolder & sInFile)

                    sTitle = Replace(Replace(Replace(MyData.Title, ",", ",,"), "&", "&&"), "+", "++")
                    sArtist = Replace(Replace(Replace(MyData.Artist, ",", ",,"), "&", "&&"), "+", "++")

                    sOutput = sTitle & "," & sArtist
                    swFile.WriteLine(sOutput)
                Catch ex As Exception
                    MsgBox("You Received the following error:  " & ex.Message)
                End Try
            Next
            swFile.Close()
            MsgBox("File has been created.  Open folder to review")
        Catch ex As Exception
            MsgBox("You Received the following error:  " & ex.Message)
        End Try
    End Sub
```

Any help would be greatly appreciated.
Try using VS's deployment tools next time as creating a folder and dropping exe's in there can be trouble as in permissions, ownership etc.
it doesn;t make much sense to me; where did you get that instruction?

substitute mkdir for md and it might work but there is insufficient information. you're making a directory and naming it sd-card. then you're going into that directory and copying everything from the f:\ drive into that folder. that doesn't get it on to the other card.

if access is denied to the card, none of the above will work so you need to fix that first. it might be write protected. [The /2/sharing/remove\_folder\_member endpoint](https://www.dropbox.com/developers/documentation/http/documentation#sharing-remove_folder_member) (or corresponding native method) would be the right way to remove a member from a folder, whether or not they've mounted it. (Or, if operating on the recipient themselves, [/2/sharing/relinquish\_folder\_membership](https://www.dropbox.com/developers/documentation/http/documentation#sharing-relinquish_folder_membership).)


That 'no\_explicit\_access' error should indicate "The target member only has inherited access to the shared folder". For example, they only have access by virtue of having access to a higher level folder, meaning you can't remove just the lower folder.


Can you print out the full error object/message? The nested `MemberAccessLevelResult` may contain more useful information.


If that doesn't seem to be the case though, please share some sample calls that produce this unexpected error though so we can look into it.


Also, sharing individual files is a different piece of functionality than sharing folders, and sharing individual files does only support view-only access. For that, you can add members to files using [/2/sharing/add\_file\_member](https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_file_member), and remove them using [/2/sharing/remove\_file\_member\_2](https://www.dropbox.com/developers/documentation/http/documentation#sharing-remove_file_member_2). 




[View solution in original post](/t5/Dropbox-API-Support-Feedback/Remove-Shared-Folder-Invitee/m-p/371583#M20937) the problem has been solved.

i got in contact with our provider and they were able to apply the proper access to the folder for verification.

thank you for all of your help and patience. this thread can now be closed. someone had the same problem before but they miss out the new windows update permissions for the microphone so try going to the settings > privacy and go to the microphone section and try turning on also the "allows apps to use microphone" under the 1st microphone access option for device.. so basically just try to turn both permissions on and see if that works. hi [@dr\_rainer\_demski](/u/dr_rainer_demski), welcome to the asana community forum :wave:t2:

in this case, i would suggest reaching out to our support team with the unique error code received as mentioned in the pop-up :slight\_smile:

you can reach out to the support team by clicking the support form prompt in the pop-up … get-content does not work like import-csv. it returns an array of strings, where each element corresponds to a line in the file.so  there is no $user.userprincipalname property, hence the null argument exception.if the training.txt file contains only an upn per line the correct syntax would be:$1xyz = new-msollicenseoptions -accountskuid "1xyz:enterprisepack" -disabledplans forms\_plan\_e3,stream\_o365\_e3,deskless,powerapps\_o365\_p2,teams1,yammer\_enterprise,rms\_s\_enterprise,mcostandard,projectworkmanagement
$stuusers = get-content "c:\users\shueet1\desktop\training.txt"
#assign licenses to users
foreach ($user in $stuusers)
{
 set-msoluserlicense -userprincipalname $user -licenseoptions $1xyz
} Hey [@Snapm2r](/t5/user/viewprofilepage/user-id/468609), 


 


Thanks for getting in touch on the Dropbox Community about this issue!
 
Seems what you’re experiencing is due to the connection to our server being blocked or interrupted. As a first step, I’d recommend having a look at your settings locally, since it seems like an [antivirus](https://www.dropbox.com/help/syncing-uploads/stuck-syncing), firewall, security program, [proxy](https://www.dropbox.com/help/desktop-web/connecting-through-proxy) or VPN is blocking the Dropbox desktop. Can you make sure that these steps are [followed for the configuration of your firewall](https://www.dropbox.com/help/desktop-web/configuring-firewall) if you’re on a working environment and that the domains listed [here](https://www.dropbox.com/help/217) are allowed or whitelisted?
 

Should the above steps fail, then please try installing the newest version of the desktop application (32.4.xx) to see if the issues is resolved:
 
[https![:confused face:](/html/emoticons/1f615.png ":confused face:")/www.dropbox.com/downloading?plat=win&type=full](https://www.dropbox.com/downloading?plat=win&type=full)
  
Please let me know the results in your reply! 
 
Warm regards, 
JaneA  


 

  
**Jane**  
Community Moderator @ Dropbox  
[dropbox.com/support](https://dropbox.com/support)

 

**![Heart](/html/images/emoticons/2764.png "Heart") *Did this post help you?*** If so please give it a Like below.   
**![](/html/images/emoticons/2705.png) *Did this post fix your issue/answer your question?*** If so please press the '*Accept as Best Answer*' button to help others find it.  
**![](/html/images/emoticons/1f504.png) *Still stuck?*** [Ask me a question!](https://www.dropboxforum.com/t5/forums/postpage/category-id/101001000) (*Questions asked in the community will likely receive an answer within 4 hours!)*





[View solution in original post](/t5/Dropbox-installs-integrations/Something-Went-Wrong-Error-after-new-install/m-p/238099#M73045) was caused because there was an "unhandled rejection error: eacces: permission denied, mkdir '/home//.npm/\_cache/index-<…>/

solved problem by just adding “sudo” in front

sudo npx create-react-app . Hello Dmytro,


You will need to bind to the Custom Command, create arguments for the command execution, specify parameter values that will be used to execute the command in the Scheduled Task and then pass the arguments to the Arguments property of the action. Here is the code that will do the trick:



```
# Define actions and conditions for the task

$commandID = "{a7264a61-b77d-4386-a138-ec2557c5b3ba}" # Command ID
$commandDN = "CN=MyCommand,CN=Custom Commands,CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes" # Command DN

# Create action set
$actionsAndConditions = $task.ConditionedActions.Create()
$actionsAndConditions.ConditionsLogicalOperation = "ADM_LOGICALOPERATION_AND"
$actionsAndConditions.SetInfo()

# Create execute Custom Command action
$action = $actionsAndConditions.Actions.CreateEx("adm-CustomCommandAction")
$action.ExecutionOptions = "ADM_ACTIONEXECUTIONOPTIONS_SYNC"

# Get action
$removeAction = $action.GetAction()

# Bind to Custom Command
$customCommand = $Context.BindToObjectByDN($commandDN)

# Specify command arguments
$arguments = $customCommand.CreateArguments()
$arguments.SetParameterValue("MyParameter", "MyValue") # Parameter value

# Configure the action
$removeAction.CustomCommandId = $commandID
$removeAction.Arguments = $arguments

# Save action
$action.SetAction($removeAction)
$action.SetInfo()
```

In the script, the $commandDN variable specifies the distinguished name (DN) of the Custom Command. For information on how to get the DN of a directory object, see <http://adaxes.com/sdk/?HowDoI.GetDnOfObject.html>.


For details, have a look at the following SDK article: <http://adaxes.com/sdk/?IAdmCustomCommandAction2.html>. this is because you have a space between fields. 

program files (x86), avast software, it will continue to get this error because of the separation. try enclosing it into quotations. such as:get-content "c:\program files (x86)\avast software\business agent\log.txt"orget-content "c:\program files (x86)\avast software\business agent"\log.txt