Results 1 to 6 of 6

Thread: Playing midi files in same folder as program

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    9

    Unhappy

    I tried to search the forum for this answer but I can't find it. I want to play the midi in the same folder, not like "open C:\xxx..." but "open \xxx...", but it doesn't work.

    THx
    All I need is help.

  2. #2
    Guest
    Use App.Path to tell your app's directory.

    "open " & App.Path & "\xxx..."

  3. #3
    Guest
    Or change the directory first.
    Code:
    ChDir App.Path
    
    PlayMIDI "MyFile1.mid"
    PlayMIDI "MyFile2.mid"
    PlayMIDI "MyFile3.mid"
    'Etc.

  4. #4
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I just want to point this out that I used this in making this program http://www.Electroman.co.uk/FighterL.ZIP

    I didn't have to put
    Code:
    App.Path
    I just put the filename and that was it.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  5. #5
    Guest
    That's true, but just for double-checking, it's a good idea to change the directory first, with ChDir.

  6. #6

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    9

    Thumbs up

    Thanks alot guys
    All I need is help.

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