Difference between WMI & FSO
WMI is better the FSO but FSO is easy to use as most of thee functionality that FSO has is also available with WMI. However WMI has some disadv and adv over FSO as follows:
Adv.:
1. WMI can work over Remote computers while if we have to use FSO over multiple computers then we have to use WSH controller to allow scripting execution on remote computers.
2. WMI can work over collection of folders and files like WMI can delete all the .mp3 files present in a system while FSO is designed to work only on single folder . to work with fso we need to bind each folder and check the existence of the file.
Disadv:
1. WMI is slower then fso. ( for specific designed and comples queries WMI is faster )
2. WMI is difficult to stop as WMI and queries run of different threads. ( benefit in case we want to delete files say if we have to delete 1000 files and first file is read only. Then fso will stop on first file while WMI will delete rest of the files)
good
ReplyDelete