+ Reply to Thread
Results 1 to 5 of 5

Thread: Create a folder based upon a variable

  1. #1

    Cool Create a folder based upon a variable

    AS you will see, this has quite much to do with the last thread.
    I have a variable %datafolder%, that has a path as value.
    I want to create and add files to this path
    How to ?

    Edvard Korsbęk

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Create a folder based upon a variable

    Edvard,

    You only have to set the file location to %DATAFOLDER%.

    File Properties -> General Tab -> Press "Location" button and select "Insert Variable"

    Does this help?

  3. #3

    Cool Re: Create a folder based upon a variable

    Hi Friedrich!
    I can see that it is possible.
    Its too way out more complicated than in SB4, where I could make a folder in the files view based upon the variable and then move my files to that directory.
    My main programme has + 300 printerfiles, and to be sure that they are all remembered....
    Next is sub foldes to the data directory, i.e. %datafolder%/printerdef/1 etc.
    If this is the only way to do it, I think that you should give it another thought .

    Mfg

    Edvard

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Create a folder based upon a variable

    Edvard,

    How did you do this in SB4? You entered the variable to the Files and Folder list (lower left list), right?

    1. Files and Folders screen
    2. Add a new folder and enter %DATAFOLDER%
    3. Add your files
    4. Recompile.

    Does this help?

  5. #5

    Smile Re: Create a folder based upon a variable

    To end this thread - Friedrich And I found out:
    Strip the 3 first letters from %Datafolder% with the string functions MID and LEN- Should be placed immideately before 'Create folders'

    Add a folder called %DATAFOLDER%

    Thats it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using a variable in Install Files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 11
    Last Post: 01-24-2006, 01:30 AM
  2. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM
  3. Create folder and Multilingua support
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 07-12-2005, 05:40 AM
  4. _SB_ROOT and variable paths
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 03-16-2005, 10:35 AM
  5. Conditional copy files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 1
    Last Post: 02-22-2005, 01:59 AM

Tags for this Thread

Posting Permissions

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