Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. saving item to same location as the program

saving item to same location as the program

Scheduled Pinned Locked Moved Visual Basic
tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Serpent666
    wrote on last edited by
    #1

    i have already set up a listbox to be saved as a txt file, but now i wish to be able to have it saved to whereever the compiled program is, for example just say the program is called listboxes.exe and is in C:\testfolder then the txtfile containing the listbox data will be saved to its directory, c:\testfolder

    N 1 Reply Last reply
    0
    • S Serpent666

      i have already set up a listbox to be saved as a txt file, but now i wish to be able to have it saved to whereever the compiled program is, for example just say the program is called listboxes.exe and is in C:\testfolder then the txtfile containing the listbox data will be saved to its directory, c:\testfolder

      N Offline
      N Offline
      nobel tele gl
      wrote on last edited by
      #2

      You properly could use application.StartupPath, it returns a string containing the path to where you executed your program We can all do great things.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups