Windows Admin Scripting Little Black Book- P8

Windows Admin Scripting Little Black Book- P8:This book may not be duplicated in any way without the express written consent of the publisher, except in the form of brief excerpts or quotations for the purposes of review. The information contained herein is for the personal use of the reader and may not be incorporated in any commercial programs, other books, databases, or any kind of software without written consent of the publisher. Making copies of this book or any portion for any purpose other than your own is a violation of United States copyright laws | Controlling System Windows When an item is opened in Microsoft Windows it is opened in a system window. The standard window controls include minimize and maximize functions. You can script these Windows commands and more through the Windows shell object. The following is a list of the window objects and their functions CascadeWindows Cascade open windows MinimizeAll Minimize open windows TileHorizontally Tile open windows horizontally TileVertically Tile open windows vertically UndoMinimizeAll Restore minimized windows To call any of these methods proceed as follows Set Shell CreateObject Browsing for Folders Using the BrowseForFolder method you can incorporate the common Browse For Folder Windows dialog box used in most Windows applications. To call the dialog box proceed as follows 1. Create a new directory to store all files included in this example. 2. Download and install the latest version of Windows Script Host from to the new directory. 3. Select Start Run and enter cscript scriptfile . Here scriptfile is the full path and file name of a script file that contains the following Set Shell CreateObject Set Folder handle Title options RootFolder FOLDER vblf PARENT Here RootFolder can be a directory path or a special folder constant. Table lists the special folder constants. Table Special folder constants. Constant Folder or directory path H0 All Users Desktop H2 All Users Program folder H3 Control Panel H4 Printers Folder H5 Personal Folder H6 Favorites Folder H7 Startup Folder H8 Recent Folder H9 SendTo Folder Ha Recycle Bin Hb Start Menu Table Special folder constants. Constant Folder or directory path H10 Desktop Directory H11 Drives My Computer H12 Network Neighborhood H13 Fonts Folder H14 Templates Folder H15 Common Start Menu H16 Common Programs Folder H17 Common Programs Folder H18 Common Startup Folder H19 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.