topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 3:28 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Variable working directory  (Read 6940 times)

Boris99

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Variable working directory
« on: December 13, 2008, 11:58 AM »
Hi, these are my first steps with LBC.
What I try is to hold the working directory variable. I have many scripts which works with directories, from they the script are started.
Works also fine with LBC if I set it as working directory.

My problem is that the working directory still change, so I'm looking for a possibility to hold the working directory variable.
So my 1st idea was to use an environment variable in the working directory field, but it doesn't work. If I set %windier% by the command LBC ignore it and change to program directory.

Any idea how to realize this?

PS.
It's possible to use envy. variables as parameter (using Arguments function), but I don't want to change all my scripts.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Variable working directory
« Reply #1 on: December 13, 2008, 12:33 PM »
there is a Working Directory option for file items:
Screenshot - 12_13_2008 , 12_31_11 PM.png

is that what you were thinking of? or maybe you are wanting to set the working directory when launching a script that you are launching while browsing a virtual folder?

Boris99

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Variable working directory
« Reply #2 on: December 13, 2008, 01:34 PM »
1st thanks for your fast reply!

What I'm thinking of is to put an environment variable in this field like %WINDIR% or %MyStartingFolder%.
If I do it now the variable seems not be expanded, so my script starts still in LBC program directory.


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Variable working directory
« Reply #3 on: December 13, 2008, 03:23 PM »
ah i see.. i can make that field expand environment variables.

Boris99

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Variable working directory
« Reply #4 on: December 13, 2008, 03:35 PM »
Cool! It would be nice if you could implement it in the next release.
I can't test the tool without this feature at the moment.

Thanks a lot!

Have a nice weekend!