Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting multiple files
Message
 
To
29/06/2001 12:54:28
General information
Forum:
Windows
Category:
Other
Miscellaneous
Thread ID:
00525254
Message ID:
00525373
Views:
13
>I need to delete all files named normal.dot on my win95 workstations. I want to do this through a log on script so I need to use either VBS or Basic dos commands. Is there a command or switch that allows you to delete all files with the name normal.dot off the entire drive no matter where they are located.

Terry,

If you were going to do this with VBScript, you'd have to iterate through the entire directory tree, check for the presence of the file, then delete it. Not terribly difficult utilizing the Scripting.FileSystemObject's Folder object, SubFolders collections, FileExists function and either the FSO's DeleteFile or the file's Delete methods.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform