Solved

vbscript

Posted on 2011-03-10
5
793 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 200 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 300 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help Creating PowerShell Script 4 65
Index Match Formula VBA 6 75
need assistance with a VBscript 3 55
Excel Web Add-in Where is Visual Basic used 9 69
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 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