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
  1. Home
  2. General Programming
  3. C#
  4. get the property name of custom folder

get the property name of custom folder

Scheduled Pinned Locked Moved C#
csharpwinformstutorialworkspace
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.
  • M Offline
    M Offline
    Member 10263519
    wrote on last edited by
    #1

    How to get the custom folder location in c3 winforms setup . am creating setup for my project, i added a custom folder named as ABC, default location:tempdir\UPLOAD property:hi so the folder(UPLOAD)is created in programfiles\companyname\manufacturer how to get the location of that folder in c# program.

    L 1 Reply Last reply
    0
    • M Member 10263519

      How to get the custom folder location in c3 winforms setup . am creating setup for my project, i added a custom folder named as ABC, default location:tempdir\UPLOAD property:hi so the folder(UPLOAD)is created in programfiles\companyname\manufacturer how to get the location of that folder in c# program.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 10263519 wrote:

      property:hi

      Folder don't have a propertybag; what property are you referring to?

      Member 10263519 wrote:

      how to get the location of that folder in c# program.

      By getting the "current directory"; that's the location from which your executable launches. Or ask the assembly where it's located. Your "upload" folder is a subfolder thereof.

      System.IO.Path.GetDirectoryName(
      System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);

      You'd Path.Combine the "upload" part to that path, and then you have the complete path to that specific folder.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      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