![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Autorun script for XP & Vista I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve the following: - detect drive letter (done) - detect OS (done) and take action if either XP or Vista found The action to take is: - if XP, open the first image in a folder on the DVD/CD using Windows Picture/Fax viewer - if Vista, open the first image in Photo Gallery I like the option in both OS to start a slide-show from either Windows application. My target users will certainly not have any other 3rd party application for image viewing so I prefer to "have them use" the native Windows image viewer interface. The autorun.inf file looks like this: [AutoRun] icon=mycustom.ico label="My Content Label" shellexecute=viewjpg.vbs This works perfectly for several XP systems i've tested. I don't have a Vista test system but have tested burnt DVD/CD on 2 different Vista systems in a store and while the autorun.inf does something (the custom icon and text register on the disk in Computer folder), the script fails to execute. Any ideas why? Might it be a security issue with store computers and lockdown? If necessary I can post the vbs here after some initial comments. - Mitch www.jensign.com (p.s. it's been a while since I've done vbs/wmi ) |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Autorun script for XP & Vista A couple or three thoughts: * Vista security is very high so things depend on the privileges of the person logged on. * Many anti-virus programs regard .vbs as a potential virus, blocking and/or sounding an alarm with *any* ..vbs file. * You probably already know this ... It's possible to disable autorun. I don't allow it on my own machines. I don't know how common it is for people to do that. Quote: > I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve Quote: > following: > - detect drive letter (done) > - detect OS (done) and take action if either XP or Vista found > > The action to take is: > - if XP, open the first image in a folder on the DVD/CD using Windows > Picture/Fax viewer > - if Vista, open the first image in Photo Gallery > > I like the option in both OS to start a slide-show from either Windows > application. My target users will certainly not have any other 3rd party > application for image viewing so I prefer to "have them use" the native > Windows image viewer interface. > > The autorun.inf file looks like this: > > [AutoRun] > icon=mycustom.ico > label="My Content Label" > shellexecute=viewjpg.vbs > > This works perfectly for several XP systems i've tested. I don't have a > Vista test system but have tested burnt DVD/CD on 2 different Vista Quote: > in a store and while the autorun.inf does something (the custom icon and > text register on the disk in Computer folder), the script fails to Quote: > Any ideas why? Might it be a security issue with store computers and > lockdown? > > If necessary I can post the vbs here after some initial comments. > > - Mitch > www.jensign.com > (p.s. it's been a while since I've done vbs/wmi ) > > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Autorun script for XP & Vista This is what I'm trying to determine .... what a standard user configuration setting for Vista might look like. I wonder if Microsoft's PPT "Package for CD" autorun.inf approach would be blocked (which launches MS PowerPointViewer exe). - Mitch "mayayana" <mayaXXyana@xxxxxx> wrote in message news:u4uDAhBdJHA.2400@xxxxxx Quote: >A couple or three thoughts: > > * Vista security is very high so things depend on > the privileges of the person logged on. > > * Many anti-virus programs regard .vbs as a potential > virus, blocking and/or sounding an alarm with *any* > .vbs file. > > * You probably already know this ... It's possible to > disable autorun. I don't allow it on my own machines. > I don't know how common it is for people to do that. > > Quote: >> I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve Quote: >> following: >> - detect drive letter (done) >> - detect OS (done) and take action if either XP or Vista found >> >> The action to take is: >> - if XP, open the first image in a folder on the DVD/CD using Windows >> Picture/Fax viewer >> - if Vista, open the first image in Photo Gallery >> >> I like the option in both OS to start a slide-show from either Windows >> application. My target users will certainly not have any other 3rd party >> application for image viewing so I prefer to "have them use" the native >> Windows image viewer interface. >> >> The autorun.inf file looks like this: >> >> [AutoRun] >> icon=mycustom.ico >> label="My Content Label" >> shellexecute=viewjpg.vbs >> >> This works perfectly for several XP systems i've tested. I don't have a >> Vista test system but have tested burnt DVD/CD on 2 different Vista Quote: >> in a store and while the autorun.inf does something (the custom icon and >> text register on the disk in Computer folder), the script fails to Quote: >> Any ideas why? Might it be a security issue with store computers and >> lockdown? >> >> If necessary I can post the vbs here after some initial comments. >> >> - Mitch >> www.jensign.com >> (p.s. it's been a while since I've done vbs/wmi ) >> >> >> > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Is Autorun.inf possible in Vista | Vista General | |||
| AutoPlay & AutoRun in Vista | Vista music pictures video | |||
| Autorun Script to empty folders | VB Script | |||
| VISTA autorun problem | Vista installation & setup | |||
| AutoRun and Vista | Vista General | |||