sams teach Yourself windows Script Host in 21 Days phần 5

Với các tập tin hàng loạt, không có khả năng gỡ lỗi tương đương. Không có gì được xây dựng trong hệ điều hành mà cho phép bạn để gỡ lỗi, và các công cụ phát triển Microsoft không giúp bạn gỡ rối cho họ either. | Simpo PDF Merge and Split Unregistered Version - http With batch files there is no equivalent debugging capability. There s nothing built in to the operating system that enables you to debug them and the Microsoft development tools don t help you to debug them either. Support for Variables WSH provides the capability for you to create and manipulate variables within your scripts. Unlike batch files variables are constrained so they are only available within a single script during the execution of the script. This is a big advantage over batch files which are restricted to using shared environment variables because it eliminates potential conflicts that can occur between scripts. Furthermore variables within WSH scripts can take any type of value including strings numbers and objects. In batch files environment variables are always strings. Comparing Batch File Usage With WSH If you ve used batch files before you might wonder how you can translate your batch files into their WSH equivalent so that you can take advantage of the enhanced capabilities of WSH. In this section you ll take a look at batch files in comparison to WSH features. Note As you go through this section you ll notice that some of the WSH equivalents for batch file functions are much longer in terms of lines of code. That s one of the few advantages of batch files over WSH scripts. You might find that for certain tasks it s easier for you to implement batch files. Batch Language and WSH Equivalents First you re going to take a look at some of the language constructs that are used in batch files and the equivalent language constructs in WSH. It s important to keep in mind that these language constructs are dependent on the WSH scripting language that you decide to use. Using Variables If you want to use variables in batch programs you must use environment variables. Here s an example that shows how you might use environment variables in a batch program Rem Create an environment .

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
164    79    2    29-05-2024
Đã 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.