Results 1 to 2 of 2

Thread: VB Directories

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Shefflield (Currently at uni in staffs)
    Posts
    149
    Thanks
    0
    Thanked
    0 times in 0 posts

    VB Directories

    Hi again.

    In the VB app I have made it utilises several seperate files which are called from the program. I want to make an installer using the visual studio installer.

    So my question is this, in VB is there any way to reference the files like \file1.txt as apposed to c:\my Prog\file1.txt so that regardless of the installation directory, the program will work

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    yes.

    if you just have like open "foobar.txt" as ........

    then it searches for foobar.txt in the program folder.

    you can also get info such as the program folder from the app. object.
    throw new ArgumentException (String, String, Exception)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VB Validation
    By Dorza in forum Software
    Replies: 4
    Last Post: 25-01-2006, 04:32 PM
  2. My First vB Board! What do you think?
    By Ango in forum Software
    Replies: 3
    Last Post: 28-05-2005, 07:48 PM
  3. USA/Canada ONLY: Free VB .NET 2003 Standard Edition
    By Atomic in forum Retail Therapy and Bargains
    Replies: 2
    Last Post: 31-05-2004, 08:14 PM
  4. VB input boxes
    By Dorza in forum Software
    Replies: 2
    Last Post: 23-03-2004, 10:02 PM
  5. Does VB support animated Gifs?
    By Dorza in forum Software
    Replies: 3
    Last Post: 25-01-2004, 05:15 PM

Posting Permissions

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