Windows Scripting (the normal shell) for Ex VB Programmers - Lesson 1
Good if you know the old Visual Basic
1. How to write your first script. (lets call this as first.vbs)
1. run cmd.exe
2. create a folder called c:\scripts
3. run notepad first.vbs
4. Save and run this file as follows
5. Try to run the file without using cscript and see what you get
6. This is because by default vbs files are executed using wscript
7. what if you wanted to change the default. Do the following
8. What if you wanted to change back the default to wscript
wscript //H:wscript
-----------------------------------------------------------------end of lesson
No comments:
Post a Comment