Jump to content

Recommended Posts

Posted

I have a script I found doing a search to lookup a folder in a powershell form but I cannot get it to access the folders I want and I am not sure what I am doing wrong.

$newShell = new-object -com shell.application
$objFolder = $newShell.NameSpace("MyMusic")
$namedfolder = $newShell.BrowseForFolder(0,"Select Song files destination folder:",0,5)
write-host $namedfolder.self.path

No matter what I put in the .NameSpace"(MyMusic") portion the dialog opens to my Documents folder.

What am I not understanding about this function/script?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...