Blog. Weekend Scripter: We work with Windows libraries - Hey, scripting guy! Blog fails to create a library MS library file

Mocosh.documents Library v1.1

This is a library of classes operating in the Microsoft`net environment. With it, you can create documents during program execution, arbitrarily edit the internal structure. The changeable document will be seen on the screen as it will be printed on paper. Using the built-in editing infrastructure, you can determine the order and method of filling out the document items, put the inside of the button, assign the context menu items.

MOCOSH.Documents Library 1.1 library documents can be easily saved to XML format, and conveniently stored in databases. To save and download, a quick algorithm is used that allows you to instantly save or download even large documents.

During the printing of the document, the printer uses the same drawing algorithm as when displaying on the monitor screen. Documents printed on paper look as well as on the screen.

MOCOSH.Documents Library 1.1 library documents can be easily converted to PDF, HTML, MHTML formats and displayed in a Web browser. The resulting HTML - the document looks almost as well as in DocViewer control. Therefore, you can easily display documents on your HTML-pages of Web applications. For these purposes, WebDoCViewer Web Control is created, which can be used when creating ASP.NET applications.

MOCOSH.DOCUMENTS LIBRARY 1.1 Professional Library contains a special editor with which you can visually create and edit documents. You can also use Microsoft to edit Visual Studio. .NET. MOCOSH.DOCUMENTS LIBRARY 1.1 Professional Library components are integrated with this medium. Therefore, you can add documents templates to your projects, visually create and configure the classes used when editing the document items.


Size program: 3.55 MB.

Summary: Microsoft Pfe Chris Wu talks about working with Windows libraries via PowerShell.

Microsoft scripting guy, ED Wilson in touch. Today we again welcome the invited blogger Microsoft Pfe Chris Wu. With the past posts of Chris, you can familiarize yourself. Chris, your keyboard.

Being involved in the process of deploying Windows 7, one of the questions that I asked - how to manage libraries. Windows libraries allow you to organize files regardless of their physical location. By default, Windows contains 4 libraries: Documents, Music, Pictures and Videos. Each of them includes the appropriate user profile and public profile folders.

Libraries are the places where the files such as Windows are first searched for files. Media Player. and many applications from Windows Store. For Windows 8. The corporate environment can be conveniently included in the library. general folder Groups located on the server instead of redirecting the user directory "My Documents". Unfortunately, library settings are located in the Library Description files (* .library-MS), and there are no settings group Policy For their control. Thus, it is necessary to distribute the preset LIBRARY-MS files on computers, which is uncomfortable enough.

And again, Windows PowerShell comes to the rescue.

Windows Shell API allows you to programmatically configure libraries, and the release of Windows API Code Pack for Microsoft .NET Framework allows you to use classes .NET with which you can work quite convenient from Windows PowerShell. To work with libraries, we will need 2 DLL from the Code Pack API. Just download the current release and unpack Microsoft.WindowSapicodepack.dll and Microsoft.WindowsAkodepack.shell.dll (both are in the BINARIES folder) to some local directory (for example C: \\ Tools).

After that, we can perform the following tasks:

Get a list of existing libraries on the computer

:: Libraries | SELECT-OBJECT NAME, PARSINGNAME

Get Library Settings

The second parameter of the LOAD method specifies whether to connect the library in read-only mode. Since we are going to make changes to the library settings, we will specify $ false.

$ doc \u003d :: Load ("Documents", $ false)

Select-Object -InputObject $ Doc -Property Name, Count, DefaultSavefolder, LibraryType

Note that I did not pass the SHELLLIBRARY returned object on the conveyor ($ DOC) with the Select-Object cmdlet, as is usually done. Recall that the library is a collection of objects, so we will not be able to see its properties if we give it in the conveyor. For properties separate folders, we will use the conveyor.

$ doc | SELECT-OBJECT NAME, PATH

Add folder to library

$ doc.add ("C: \\ Docs")

Specify the location of saving files by default (only works if the target directory is already included in the library)

$ doc.defaultsavefolder "C: \\ Docs"

Delete directory from the library and close the shelllibrary object

$ doc.remove ("C: \\ Docs")

Create a new library

The library is essentially file.library-MS. If it is saved in the $ ENV: AppData \\ Microsoft \\ Windows \\ Libraries directory - it will be automatically detected and the library will be displayed in Windows Explorer.

We will create a new "PowerShell" library and turn on the Local Storage Folder of the C: \\ PS (on this moment empty).

$ ps.add ("C: \\ PS")

Excellent. We have created a new "PowerShell" library. Like many readers of this blog, I have a lot of scripts for different occasions: Some are designed to work - located in a folder synchronized via SkyDrive Pro, others for personal use - they are saved in another SkyDrive directory.

Now, when I have a PowerShell library, I can display all my scripts with one click. And all I need to do for this is to add the following code into a preparatory script that runs once on each of my new computers.

Add-type -path microsoft.windowsapicodepack.shell.dll

# For Each Library, Add Skydrive and Skydrive Pro Folders (Assuming Default Locations)

:: Libraries | % (

$ Library \u003d :: Load ("$ ($ _. Name)", $ false)

$ library.add ("$ ($ ENV: UserProfile) \\ SkyDrive \\ $ ($ _. Name)")

$ library.add ("$ ($ ENV: UserProfile) \\ SkydrivePro \\ $ ($ _. Name)")

$ Library.Close ()

# CREATE A POWERSHELL LIBRARY AND INCLUDE CRESPONDING FOLDERS

$ PS \u003d New-Object Microsoft.WindowsAPICodePack.shell.ShellLibrary -Argument "PowerShell", $ true

$ PS.Add ("$ ($ ENV: UserProfile) \\ SkyDrive \\ PowerShell")

$ PS.Add ("$ ($ ENV: UserProfile) \\ SkydrivePro \\ PowerShell")

That's all. For getting for more information About Windows API Code Pack and SHELLLIBRARY Class, refer to the documentation that is provided together in DLL files.

Ed Wilson, Microsoft Scripting Guy

Original:

naguglyl




Attachment 2 ****** 3

....
there was still a cant, no applications are installed from the store, and all that I tried issued this error. Is it treated somehow?

Posted by grunger:

When opening any library (video, documents, music, etc.) pops up the error window "Library" videos.library-MS "stopped working"

naguglyl
C: \\ Users \\ .... \\ APPDATA \\ Roaming \\ Microsoft \\ Windows \\ Libraries \\ Do Cuments.library-MS
C: \\ Users \\ .... \\ AppData \\ Roaming \\ Microsoft \\ Windows \\ Libraries \\ MU SIC.LIBRARY-MS
C: \\ Users \\ .... \\ APPDATA \\ Roaming \\ Microsoft \\ Windows \\ Libraries \\ Pi Ctures.library-MS
C: \\ Users \\ .... \\ APPDATA \\ Roaming \\ Microsoft \\ Windows \\ Libraries \\ VI Deos.Library-MS

removed these files, then right click on the "library" - restore standard. Helped.

Defender - exactly only firewall? And then I have both the authors and Kamenya catches ...
Attachment 2 ****** 3

Yes, it seems like not. Hurts he looks like Microsoft security Essentials.It seems that this is really antivirus.

Interesting such a moment that on Windows 8 can not be launched Metro applications Using built-in account Administrator.

What will happen to a trial version when the eight will be on sale?

To find out the end of the work trial version Enter Winver and you will see:

Trial version. The term expires 01/16/2013 2:59

That is, after the celebration of the New Year and Substitute Holidays, Microsoft will give out its "present" on the screen ...

[Collapse]

Attachment 2 ****** 3

When the final version comes out, the trial will not be needed, it will not be necessary, from the trial, it is except to the tokens to use the product normally without buying a license.

All the same, how much I did not read that the eight is already stable and you can put the main OS, it is not stable. Put on a netbook, so when leaving the sleep mode network adapters Disconnected and nowhere to include them, they stupidly disappear, and with them all the settings. It helps only reboot OS. Driver ATI. Catalyst written under Windows 8, has already managed to roap what an exception has occurred at, and today there is no BSO with anything at all when I read a message on the forum. And these are only three days of work. I still did not put the programs, just the driver for Viyakhi and everything. All other firewood pre-installed. When a seven stood on a netbook, at least one error occurred in work or a problem, I'm already talking about BSOD.

Windows 8 Codecs 1.1.1 - the final set of codecs from Win7codecs developers, designed to install in the new operating room windows system 8. It is necessary to view the video. Currently, Windows 8 Codecs is the only one solution designed to work in a new OS environment. A package is an automated tool intended for the installation of basic codecs and decoders. Unlike his older fellow, it does not contain any additional players and does not change system associations by default files. In addition, when installing, it will automatically delete the already installed codecs and replace them with its own from the kit to provide better compatibility.

ChangeLog:
- Improve Subtitles / LAV-VC1
- Update Intel Quicksync R35
- Update Lav Filters 50.5+
- Update Mediainfo.

OC: Windows® 8
Interface language: Russian

By the way, who has no applications from the store, are not updated, actually like Windows itself: we go to the IS74.ru website and in the connection instructions for configuring are looking for a free update.

Well, or - if you are shorter - suck in the properties of the connection immediately in the internet protocol properties of the 4 version (TCP / IPv4) the following DNS addresses

78.29.2.23
78.29.2.24

I need some programs to be launched with administrator rights. For example, Total Commander, FUBAR2000. In the properties of shortcuts, on the Compatibility tab, I pointed out. Now when starting the UAC program, it gives a request. Is it possible to get rid of it?