| |
| | Microsoft Windows 2000 Scripting Guide - Retrieving and Changing a Script's Current Working Directory |
 | | The working directory for a script is initially set to the directory from which the script is started. |
 | | If you are working in the C:\Temp directory, for example, and you type c:\scripts\report.vbs to run the Report.vbs script, the working directory is C:\Temp, even though the actual script file, Report.vbs, is located in the C:\Scripts directory. |
 | | To retrieve the current directory for a script, create an instance of the WshShell object, and then echo the value of the CurrentDirectory property. |
| www.microsoft.com /technet/scriptcenter/guide/sas_wsh_cyst.mspx (331 words) |
|