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?
 
EDDYKTConnect With a Mentor Commented:
Set WshShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("PROCESS")
wscript.echo WshSysEnv("OS")
Set WshSysEnv = Nothing
Set WshShell = Nothing
0
 
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 ThaikaConnect With a Mentor Sole ProprietorCommented:
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.