Results 1 to 7 of 7

Thread: Pocket PC Directory & Applications

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    Pocket PC Directory & Applications

    Hi May i know what is the directory for PocketPC as i have to actually save something a stream transfer ?

    VB Code:
    1. Dim incomingfile As System.IO.Stream
    2. incomingfile = IO.File.Open("C:/" + data, IO.FileMode.OpenOrCreate)

    IO.File.Open, what shall i put in there ?

    Lets say if i receive a .txt file and i want to open it using a NotePad, or maybe a .wmv file and i want to open it using Media Player.

    WHat shall i do ?

    Can Someone please help ?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Directory & Applications

    Hi,
    c:\ etc do not exist on a ppc.

    Put your documnents in whichever folder you want - "\My documents\..."
    "\Windows\...", "\Program Files\MyProgram\Data" etc

    Pete

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    Re: Pocket PC Directory & Applications

    Ok Thanks alot, may i ask do you know how to run PPC Applications using VB.NET codes ?

    As in like process.start etc ..

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Directory & Applications

    HI,
    you can use the OpenNETCF for OpenNETCF.Diagnostics.Process.Start or p/invoke CreateProcess for VS2003, or use the System.Diagnostics and process.start in VS2005

    Pete

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    Re: Pocket PC Directory & Applications

    I can run NotePad, Image, but for Video, the Media Player opens up but it doesn't load the link to play the video.

    How shall i do this ?

    VB Code:
    1. Dim AppPath As String = "/My Documents/"
    2. Dim Data As String = "PlayThisVideo.wmv"
    3. OpenNETCF.Diagnostics.Process.Start("""" + AppPath & Data + """")

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Directory & Applications

    Hi,
    Does the file launch if you double-click on it.

    Or try running media player with a command line of the file name.

    Pete

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    Re: Pocket PC Directory & Applications

    The file launch when you double click it, the thing is after the file is been downloaded, it will auto launch.

    Yes, it launched Media Player, but the Media Player doesn't play it, the play song will be the song i last played.

    E.g Manually Played "Welcome to My Life.wmv"
    Downloaded "Reason.wmv"
    Auto Launch Media Player.....
    Link is "Welcoem to my Life.wmv"

    it's not the recent 1 which i downloaded, so i am not sure how to make Media Play the song straight away.

    Please help .. thank you..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width