Article ID: 197425 - View products that this article applies to.
This article was previously published under Q197425
This article contains a sample VBScript file that automates the deletion of files or folders from the desktop.
Please note that if you are using Windows 95, you need to install WSH.exe from the following Web site to enable Windows Script Host:
Administrators can automate the deletion of files and or folders by adding a line similar to the following in the login script:
Where <server> is the name of the server and <share> is the name of the share.
//T:5 Terminates the script after 5 seconds if it is still running.
//B Tells the script to run in non-interactive mode.
Sample CodeUsing a text editor, create a VBScript file called RemoveIt.vbs with the following lines:
For additional information on Windows Script Host and VBScript Language Reference, please see the following Web site:
Article ID: 197425 - Last Review: August 8, 2007 - Revision: 3.3
Contact us for more help
Connect with Answer Desk for expert help.