TAILIEUCHUNG - Writing a Script in Windows 2000

The system administrator needs to create a script in the startup folder that will display on the users desktops when they log on to their systems. To experiment with writing scripts for that, practice with a sample script that will be created in this lab. | Lab Writing a Script in Windows 2000 Estimated Time 30 Minutes Objective The objective of this lab is to learn how to write a script in Windows 2000. Equipment The following equipment is required for this exercise A computer running Windows 2000 Professional Scenario The system administrator needs to create a script in the startup folder that will display on the users desktops when they log on to their systems. To experiment with writing scripts for that practice with a sample script that will be created in this lab. Procedures In this lab the student will create and execute a Visual Basic Script and place it the start menu. Step 1 Writing the Script 1. Open up Notepad. Go to Start Programs Accessories Notepad. 2. Type this text into Notepad Dim Greeting Dim UserName UserName InputBox Please enter your name UserName Trim UserName 1 - 3 IT Essentials II - Lab Copyright 2002 Cisco Systems Inc. If UserName Then Greeting Why won t you tell me your name That s not very nice. Elself UserName go away Then Greeting That s not very nice. Elself Username who s asking Then Greeting I asked you first. Else Greeting Hello UserName it s a pleasure to meet you. If UserName Steve Then Greeting Greeting I like the name Steve. End IF End IF MsgBox Greeting 3. Save the document as Note If the student needs to edit changes after saving have them change the extension to .txt. To change the file back to a .vbs scripts go to the following folder C WINNT system32 In this folder associate the file with the wscript file. Step 2 Executing the Script 1. Navigate to the folder where the file was saved and double-click on it. 2. Do not type anything in the box and click OK. Notice what message is displayed and how it corresponds to the entry in the text of the script. 3. Click OK. 4. Double-click the script again and this time type go away in the box. Notice what message is displayed and how it corresponds to the entry in the text of the script. 2 - 3

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.