Thus the following should work out of the box in Windows 7+ that comes with PS pre-installed, and on XP/Vista after PS is installed. However, since VBScript does not support calling normal Windows API functions or even functions from arbitrary DLLs, that leaves us with PowerShell. I don't know whether the latest versions of WMP include an OCX with similar functionality or not, plus disabling/uninstalling it via Windows Features might interfere with the functioning of the script in any case.Ī common way to implement this functionality via code is by using the Media Control Interface (MCI) APIs (specifically, the set command). All the VBScript solutions I've seen so far use an outdated Windows Media Player OCX. The only way to do this IMO without the use of 3 rd party utils (such as NirCmd and Wizmo) would be via VBScript or PowerShell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |