Then try a single quote. Or try starting WMP from teh command prompt and
whatever you enter there is what it expects here. The problem is that WMP
"dave m" <davem@nexcortech.com> wrote in message
news:eNdef0bNHHA.3588@TK2MSFTNGP06.phx.gbl...
> Chris,
>
> I appreciate the reply, but I'm still having problems! I initally had
> tried nesting the quotes as you had suggested, but VS doesn't seem to like
> it in this case. I generates a 'End of statement expected' error.
>
> Dave M.
>
>
> "<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in message
> news:eU0zInbNHHA.4060@TK2MSFTNGP03.phx.gbl...
>> Try adding quotes to your command line so WMP knows where the filename
>> starts and ends, just as you would form a console.
>>
>> myProcess.StartInfo.Arguments = "\"\My Folder\TestVideo.wmv\"
>> /fullscreen"
>>
>>
>> --
>> Chris Tacke
>> OpenNETCF Consulting
>> Managed Code in the Embedded World
>>
www.opennetcf.com >> --
>>
>>
>> "Dave M." <davem@nexcortech.com> wrote in message
>> news:%23PI1qibNHHA.4172@TK2MSFTNGP03.phx.gbl...
>>> Hello,
>>>
>>> I'm launching Windows Media Player successfully with the following
>>> code:
>>>
>>>
>>> Dim myProcess As New Process
>>>
>>> myProcess.StartInfo.FileName = "wmplayer.exe"
>>>
>>> myProcess.StartInfo.Arguments = "\media\TestVideo.wmv /fullscreen"
>>>
>>>
>>> This only works because I made a folder 'media' and the foldername
>>> contains no spaces. Pointing to a file in a folder that has a space in
>>> the folder name (such as \My Documents\ or \Storage Card\ fails, even
>>> though I successfully check for the existance to the file before
>>> launching WMP. I'm guessing the issue is with the way the
>>> myProcess.StartInfo.Arguments line is parsed.
>>>
>>> Does anyone have any ideas?
>>>
>>> Thanks in advance for any help.
>>>
>>> Dave M.
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>