Newsgroups: microsoft.public.scripting.vbscript
From: cdubone <gu...@unknown-email.com>
Date: Sun, 1 Nov 2009 22:50:02 -0600
Local: Mon, Nov 2 2009 4:50 am
Subject: Re: Wscript.Shell open file in wmplayer
Yes, you're correct about about the slash in D:\assets\TheFile.wmv, that I can get the application to open wmplayer and a certain file if I hard However, if I construct that very same string it doesn't work: LaunchDir = objShell.CurrentDirectory FullPath = chr(34) & ThePlayer & LaunchDir & RelPath & The document.write outputs "wmplayer.exe D:\assets\TheFile.wmv" which Anyone know what I need to do to get this working? Al Dunbar;1181374 Wrote: > "cdubone" <gu...@newsgroup-email.com> wrote in message -- > news:09b40379df88c25c91573f85a8d01528@newsgroup-gateway.com...> > > > > > I'm making an app that lives on a CD that opens wmv's from the CD. I > > > Sub OpenFile (theFile) > > > End Sub > > > This works: objShell.Run "assets\" & theFile > > > And if I hard code a file reference it works: > > > I'm essentially trying to fuse those two lines of code - open > > > Will someone show me how this is done? > > You might include a copy of wmplayer.exe on the CD, assuming that > /Al cdubone You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||