Juan Pablo Posted April 14, 2008 Report Share Posted April 14, 2008 I am doing some work on Flash and I need to be able to open a PowerPoint presentation from a .bat file ... any ideas?For a PDF I usestart thefile.pdfand it works just fine, buy by some strange reason it doesn't work with pptsThanks in advance :) Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted April 14, 2008 Report Share Posted April 14, 2008 Have you tried starting PowerPoint from within the bat file, with the /C command line switch? See http://office.microsoft.com/en-us/powerpoi...1538891033.aspx Quote Link to comment Share on other sites More sharing options...
Juan Pablo Posted April 14, 2008 Author Report Share Posted April 14, 2008 Have you tried starting PowerPoint from within the bat file, with the /C command line switch? See http://office.microsoft.com/en-us/powerpoi...1538891033.aspxMy problem is that I need to open it in different computers, with different configurations and powerpnt.exe is not usually in the path of the users. Any ideas? Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted April 15, 2008 Report Share Posted April 15, 2008 I think if Office is correctly installed, you won't need the full path, as it is already in the standard %PATH% environment variable. Just use POWERPNT.EXE (I just tested it; it opens PowerPoint):powerpnt.exe /C "My Documents\docname.ppt" Quote Link to comment Share on other sites More sharing options...
Juan Pablo Posted April 15, 2008 Author Report Share Posted April 15, 2008 I think if Office is correctly installed, you won't need the full path, as it is already in the standard %PATH% environment variable. Just use POWERPNT.EXE (I just tested it; it opens PowerPoint):powerpnt.exe /C "My Documents\docname.ppt"It doesn't work on my computer but don't worry I already solved it. I didn't remember I can open any file from the command line (.bat) just by typing its name. I feel stupid Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.