Article ID: 244676 - Last Review: August 8, 2007 - Revision: 3.5 How to map, delete, and enumerate network drives using the Windows Script HostThis article was previously published under Q244676 SUMMARY
The Microsoft Windows Script Host is a language-independent
scripting host for 32-bit Windows operating system platforms. Windows Script Host is integrated into Microsoft Windows 98, Windows 2000, Windows ME, Windows XP, Windows 2003 Server, and Microsoft Internet
Information Server 4.0. The Windows Script Host is included with Microsoft Windows NT 4.0 Option Pack. To download it, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms950396.aspx
(http://msdn2.microsoft.com/en-us/library/ms950396.aspx)
.
MORE INFORMATION
This program demonstrates how to map a network drive and then enumerate through the mapped drives. The program deletes a mapped drive if it exists. To run this example, copy the code below into a new
program file, change the third #DEFINE to a valid network share on your network, and then run the program.
REFERENCES
For the latest information about the Windows Script Host, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms950396.aspx
(http://msdn2.microsoft.com/en-us/library/ms950396.aspx)
APPLIES TO
| Article Translations
|
Back to the top
