Vb Code to open file on cd-rom

firewall_ie

Registered User.
Local time
Today, 19:11
Joined
Mar 31, 2003
Messages
20
Hi Can anyone help me I am trying to autorun a powerpoint slide show from a cd-rom i need some vb code that will open a file on my cd-rom disk.
 
I use this to open up a document on my network you should be able to adapt.

Call Shell("C:\Program Files\Windows NT\Accessories\ImageVue\kodakprv.exe ""G:\E&S\Energy\em\Scanned_Invoices\" & Me.Invoice_File_No & ".tif""", 1)

Thanks
Geoff
 
You need to open up the NotePad.exe program to create the AutoRun.inf file. Once you have opened up NotePad, type this into the file...

[autorun]
open = YourPowerpointFile.pps


Close NotePad and save the file with the file name: AutoRun.inf

Burn the AutoRun.inf file and your powerpoint file to the CD. If the users AutoRun feature is turned on, the slide show should automatically start after the CD is inserted. Also, the users PC must have the MS Powerpoint program installed.

HTH
 
ghudson
I posted this before Geoffcodds post but when I tested it it would not work. Hence I deleted the post.

Can you get it to work or is it me being thick!!
 
No, it does not work. :mad:

I tried these two without any luck...

[autorun]
open=YourPowerpointFile.pps

[autorun]
open = C:\Program Files\Microsoft Office\Office\powerpnt.exe YourPowerpointFile.pps

Anybody eles have any suggestions?
 

Users who are viewing this thread

Back
Top Bottom