Results 1 to 3 of 3

Thread: Path Sensitive. How?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    52
    I have a tiny Newbie problem.

    How do i make the following line application path sensitive?

    'Read MOTD file
    rtbMotd.LoadFile "C:\Program Files\SCP\motd.rtf", rtfRTF

    Is it something like

    'Read MOTD file
    rtbMotd.LoadFile "app + path" , "motd.rtf", rtfRTF

    I am guessing at that, and my book doesnt have it in it. So am at a bit of a loss.


    Any help is appreciated.
    M.

  2. #2
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727
    If the rtf file you are referring to is in the folder where you have installed your application, the code is:

    Code:
    'Read MOTD file 
    rtbMotd.LoadFile App.Path & "\motd.rtf", rtfRTF
    Cheers,

    W.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    52
    Thankyou for that.

    worked a treat.

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