I know in vbs you can use the FSO to delete files , ie :
The other option would be to use comspec with cmd ie :Code:set obtainfolder = fso.GetFolder(PathFolder) obtainfolder.Delete true End Select
http://www.computerperformance.co.uk/ezine/ezine80.htm
and to run the rmdir command or deltree or something to that effect ( in which case you may as well just use a bat script )
Was wondering if there was another way in vbs to delete files and folders recursively minus the exceptions of folders such as Default, All Users, etc as per or similiar to this script :
http://www.wisesoft.co.uk/Scripts/di...ipt.aspx?id=14
Just seems to take a long time to delete local profiles using the FSO.
The only other option that may be possible that I can think of would be to make an ocx or something to that effect in vb6 that used the SHFileoperation or something simliar as per this URL :
http://vbnet.mvps.org/index.html?cod...hfileopadv.htm
So all that aside is there another way in vbs to do it faster ?
Or are those the only options available ?



LinkBack URL
About LinkBacks
Reply With Quote





