Avatar of RayT
RayT
Flag for United States of America asked on

Playing audio/video files in Windows 10

Before Windows 10 an audio/video file could be played from a VB Script using a Shell command.  How do you play an audio/video file from a VB Script with Windows 10?
VB Script

Avatar of undefined
Last Comment
RayT

8/22/2022 - Mon
Bill Prew

I would expect the same thing to work, as long as the extension of the file is recognized as associated with Windows Media Player.

What is the name of the file?

And what is the VBS code you are trying that doesn't work?

~bp
Bill Prew

I just tried it with an MP# file here, that worked fine.

~bp
RayT

ASKER
Can you show me the code?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RayT

ASKER
Will this work on Windows 10?
Bill Prew

Yes, that's where I tested it.

~bp
RayT

ASKER
Thanks
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.