Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting multiple files
Message
 
À
29/06/2001 12:54:28
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
00525254
Message ID:
00525373
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform