|
|
|||||||
Helo, I have a problem while I try to call a pps presentation on my script login. I tried, CALL, SHELL (plus call), RUN, DISPLAY and PLAY. But the results were not good. Could, please, someone help me in how call a pps presentation on kix script? Thanks |
||||||||
|
|
|||||||
This work for me. Code:
[edit] I used a .ppt but a .pps also works. [/edit] |
||||||||
|
|
|||||||
run '%comspec% /c start '+ $pptfile |
||||||||
|
|
|||||||
take care to long file name. I use to write run '%comspec% /c start "'+ $pptfile +'"' |
||||||||
|
|
|||||||
The run/start method doesn't always work - for example it simply opens a command window for me. The same applies to ".htm" files that are not in my current directory. If you can identify the application path and explicitly execute it you will find it is a more reliable solution for general deployment. |
||||||||
|
|
|||||||
Here is a way to do this using COM ... Code:
|
||||||||
|
|
|||||||
Quote: Is that synchronous? |
||||||||
|
|
|||||||
Nope - asynchronous. Prolly could make it sync if required. |
||||||||
|
|
|||||||
The FileAction() UDF can do it. |
||||||||
|
|
|||||||
yo, basta's... what's wrong with: run 'explorer "' + $file + '"' |
||||||||
|
|
|||||||
Quote: Because we don't live in a perfect World and sometimes other applications mess up or take over the file association. |
||||||||
|
|
|||||||
I like Shawn's COM method myself, actually shows up as a presentation show instead of just opening PowerPoint like the file call method does. Here is Mart's code a little different, both work well, but Shawn's does it a bit better (imho) |
||||||||
|
|
|||||||
doc, on the other hand. someone has default application for viewing some type of files and with your style of code you force them to ms appies instead. tell me, I'm wrong... |
||||||||
|
|
|||||||
Yes, quite true but in this case it would be highly unlikely that a user was not using PowePoint. One could do a check on the association as well and see if it was even an associated file and to what application and then decide if you want to allow that application to run or if you're going to force another one. |
||||||||
|
|
|||||||
Hey, welcome to the wonderful world of KiXtart habeebs |
||||||||
|
|
|||||||
So many replies since Christophe's its old news now but I think: Code:
... will open a command window because the Start command wants to interpret the string in the first set of quotes it finds as a title. The following will work: Code:
mole |
||||||||
|
|
|||||||
rofl, hehe Boy we are bored. habeebs has not come back and replied and we're all trying to Golf and otherwise recode a simple task. |
||||||||
|
|
|||||||
Not much else to do while mole listens for his coffee to finish perking in the moring. mole PS - I hope the *.ppt file actually runs eventually after all this! |
||||||||
|
|
|||||||
Quote: This one worked, BUT, it opened in power point, not a presentation. I mean, I can edit it if I want after I login And yes, I am reading the post, but while I test, I can't reply to you =p Thanks |
||||||||
|
|
|||||||
Yes, that's what I said. PowerPoint opens with the file association method. If you use the code from Shawn though it will open correctly as a show. |
||||||||
|
|
|||||||
again, simple: Code:
would work just fine. don't think it too complex |
||||||||
|
|
|||||||
Like I said... simple... open it with FileAction() and you have control over whether it opens for editing or show. How hard can it be? |
||||||||
|
|
|||||||
no one said it was hard, just everyone is so bored with not much going on with the board we're all blasting out ideas. |
||||||||
|
|
|||||||
doc, sure. but habeeb took one of the longest codes represented and that's why I woe'd |
||||||||
|
|
|||||||
This board is like a river full of hungry piranha... Jooel, What are you talking about? Habeebs didn't even reply until post #161345 and by then had his bones picked clean already. |
||||||||
|
|
|||||||
that I'm talking about. he had huge amount of choices and he picked a long and complex one. that's what I originally replied to where doc replied about something and then I replied to that and then you came back. so... ok. |
||||||||
|
|
|||||||
What makes you think Habeeb even picked one yet ? |
||||||||
|
|
|||||||
You woe'd (yo'd actually) on post #161281, long before habeebs replied. |
||||||||
|
|
|||||||
Where da wooing ? I dunna see da wooing. |
||||||||
|
|
|||||||
I woe'd and yes, habeeb choce his/her pick when he/she posted a "working" solution, which was just a bit off. and my woe was lot after that. I started screaming after les started abusing me. |
||||||||
|
|
|||||||
Where's this working solution ? Habeebs has only ever posted twice - once to ask the question and once to complain one of the solutions didn't work. |
||||||||
|
|
|||||||
pffft |
||||||||
|
|
|||||||
shawn: Quote: start reading the posts word by word as I do |
||||||||
|
|
|||||||
Quote: ROFLMAO - Oh the humility not there in this post. How far must we stray from the truth when hi-jacking a post |
||||||||
|
|
|||||||
I just choose that one because was the one that worked... I'm not accessing every time because I access on my job and I don't have free time to see it. And I'm a man LOL Anyway, I'm trying all the methods that you all sugested me Thanks Edit: By the way run "explorer yourpresentation.pps" didn't worked... I will try the other way that is on last page. |
||||||||
|
|
|||||||
I gave up to use powerpoint, I saved the presentation in htm format and put to call IE, it's working fine and my boss liked. Issue solved, thanks to you all =] |