?
Solved

vbscript

Posted on 2011-03-10
5
Medium Priority
?
795 Views
Last Modified: 2012-05-11
I need a vbscript to run a power point SHOW. It is not a slide show(.ppt). It is in  .pps format and the location is in C:\test.pps

Thanks,
Paul
0
Comment
Question by:pauledwardian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Assisted Solution

by:sweeps
sweeps earned 800 total points
ID: 35097155
Dim wsh
Set wsh = CreateObject("Wscript.Shell")
wsh.Run "powerpnt /s C:\test.ppt"  
0
 
LVL 12

Expert Comment

by:Amick
ID: 35097166
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /c .\documents\test.ppsx"
0
 
LVL 5

Expert Comment

by:sweeps
ID: 35097188
OOps..  put ppt instead of pps .  sorry.  
0
 
LVL 12

Accepted Solution

by:
Amick earned 1200 total points
ID: 35097192
The above was set up against my testing environment,  I should have edited it to match your request as follows:
set WshShell = WScript.CreateObject("WScript.Shell") 
WshShell.Run "cmd /c  C:\test.pps" 

Open in new window


One could also use a regular batch file containing the single line:
c:\test.pps

Open in new window

0
 

Author Closing Comment

by:pauledwardian
ID: 35132011
good comments
0

Featured Post

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question