PDA

View Full Version : Create a folder based upon a variable



Edvard Korsbęk
03-10-2005, 12:17 AM
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 :confused: ?

Edvard Korsbęk

linder
03-10-2005, 12:21 AM
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?

Edvard Korsbęk
03-10-2005, 05:51 AM
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.... :mad:
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

linder
03-10-2005, 05:59 AM
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?

Edvard Korsbęk
03-10-2005, 08:16 AM
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.