Script to Identify the OS

Hi
I have a power point point presentation in a CD that runs as autorun when u insert the CD.Before the presentation starts i want to Identify the OS and install some fonts in the corresponding font folders and then run the PPT...How can i do this ...any idea/suggestion.. ?
 
jinuptAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EDDYKTCommented:
Set WshShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("PROCESS")
wscript.echo WshSysEnv("OS")
Set WshSysEnv = Nothing
Set WshShell = Nothing
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shahid ThaikaSole ProprietorCommented:
Instead of finding the operating system first and then install fonts in its fonts folder, you may want to directly install fonts in the windows font folder. One methd is by querying the registry key 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders' for data in 'Fonts' value.
0
Shahid ThaikaSole ProprietorCommented:
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jinuptAuthor Commented:
but If i write an app in VB will it run from a CD ..if i copy all the supporting dll's to CD ??
0
Shahid ThaikaSole ProprietorCommented:
You can write the code in the setup executable file. Make a copy of VB's setup program and modify it. And then add the OS finding code to it. Your code is sure to be executed
0
jinuptAuthor Commented:
ok..thx
0
Shahid ThaikaSole ProprietorCommented:
let me know if you need any help :)
0
jinuptAuthor Commented:
Sure...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.