shell syntax not right ?

Discussion in 'Questions (Windows Mobile)' started by dennishea, May 31, 2009.

  1. dennishea

    dennishea Active Member Licensed User

    This is my program.

    Code:
    Sub Globals
       
    'Declare the global variables here.
       Dim arraylist1   
       
    Dim words(0)   
    End Sub

    Sub App_Start
       Form1.Show   
       FileSearch(arraylist1 ,
    "\cf card\video\")
       
    For i = 1 To arraylist1.Count -1   
          listbox1.Add(arraylist1.Item(i))
       
    Next i
    End Sub


    Sub ListBox1_SelectionChanged (Index, Value)
          
    Shell("wmplayer.exe",Chr(34) & value & Chr(34))
          [COLOR=
    "Red"]Shell("wmplayer.exe","value")[/COLOR]
    End Sub

    edit:

    I changed the program so that it works now with help from badkarma. The line in red is what I did wrong. This program is for my father in law who is 75 and has a great grandbaby about a 14 hr drive from here. The daughter posts 5 minute videos and I load them on an old pda that I have with an 8gb card. With this program locked in the start menu he can't get lost.


    Denny :sign0148:
     
    Last edited: May 31, 2009
  2. dennishea

    dennishea Active Member Licensed User

    @badkarma

    I used your example just like it was and changed value so that it had the whole path and not just the name of the program and it works fine. Thank you.


    Denny :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice