You are here

Using custom string variables

4 posts / 0 new
Last post
computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
Using custom string variables

When I build one of my apps, I have to do a lot of copying & pasting of files; this has caused me trouble more than once, so I've decided to do something about it.
Toucan's sync feature would be perfect for this, but I can't figure out how to set a custom string variable (the version of my app, for example "0.25.9.0"). Since the source & destination folders both depend on the app version, that's fairly important for me.

If Toucan can't do that, don't worry about it; I'm just wondering if there's a way to do it.

Thank you!

J Neutron
Offline
Last seen: 6 months 3 weeks ago
Joined: 2008-06-10 19:26
Environment variable

I got a bit frustrated typing a looooong path over and over again in a script, so I just looked up how to set environment variables on my machine (WinXP).

I've got BACKUPS permanently set to C:\Documents and Settings\Jim\PortableApps\Backups

Then I have the lines in the script like this:
|Rename "@BACKUPS@\\Finance-7.7z" "@BACKUPS@\\Finance-8.7z"
|Rename "@BACKUPS@\\Firefox-7.7z" "@BACKUPS@\\Firefox-8.7z"
etc....

I'm pretty sure you can use some kind of batch to temporarily set the environment variable to whatever you need, run whatever job using the environment variable, then do whatever.

If you are saving daily versions, you can always use @DATE@ in the backup filename...

neutron1132 (at) usa (dot) com

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
Thanks for the suggestion

Given Toucan's command-line abilities, a batch file could be just what I need.

I'll see what I can cook up in a batch file; should just be something like this:

set MyAppDir "D:\DOCS\Programming\REALbasic projects\My Source Code\MyApp"

No dailies, fortunately, so there's only one environment variable to worry about.

Thanks for the suggestion!

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

J Neutron
Offline
Last seen: 6 months 3 weeks ago
Joined: 2008-06-10 19:26
Yer welcome

Happy to help.

Good luck with the project.

neutron1132 (at) usa (dot) com

Log in or register to post comments