![]() NET Framework class that is documented on MSDN, so it will be easy for you to add additional capabilities to the function if you desire to do so. The good thing is that the Get-FileName function uses a standard. I have taken the liberty of writing a pretty cool function that is called Get-FileName that you will be able to use to accomplish your file-picking needs. You can accomplish the same thing, in a very similar manner as a matter of fact, by using Windows PowerShell. The UserAccounts.CommonDialog object was removed from Windows Vista because of security concerns. ![]() (I actually had another question a while back that I answered during Quick-Hits Friday.) Using undocumented objects is always an iffy proposition at best, but it is also fun -until your scripts start to break. ![]() As far as I can recall, I never saw any documentation about the UserAccounts.CommonDialog object on MSDN, so it was an undocumented object. There was an article posted way back in January 2005 called, How Can I Show Users a Dialog Box for Selecting Files? Along with the script you found on the Script Repository, that is about it for documentation. Ah, the old UserAccounts.CommonDialog problem. Hello PG, Microsoft Scripting Guy Ed Wilson here. Is there any easy way to open a file dialog box so that I can use a file picker to select a file path instead of having to type in a long file name and location? The problem is the script does not work on Windows Vista, and I have also tried it on Windows 7 and it does not work there either. WOW! Anyway, I have this script that I have used for a while that I got off the old Script Repository that creates a common dialog box to open a file explorer window. I had no idea you had so many scripts up there. ![]() It is much easier to use and to locate scripts than what you had before. I love your new TechNet Script Center Gallery too by the way. Hey, Scripting Guy! I am a faithful reader of the Hey, Scripting Guy! articles and have been a Dr.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |