DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Relative paths in arguments  (Read 4,855 times)

poyan

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 30
Relative paths in arguments
« on: February 25, 2014, 06:37 AM »
Hi,
I use LBC portable from a stick.
Starting programs with %APPDRIVE% from that stick works fine.
However, passing arguments isn't possible using %APPDRIVE%.
I finally remembered the conventions for relativ paths using .\subpath - it is working now!
Since this knowledge is not so common, and I lost quite some time trying to use %APPDRIVE%,
I suggest to help users with this topic by adding some sentences to the help and
show some hints ("argument not valid, ..."), instead of just starting the program without the argument/with an invalid argument,
or (better) by accepting and "translating" the environmental variables also in the arguments.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Relative paths in arguments
« Reply #1 on: March 21, 2014, 09:10 PM »
Good ideas poyan, i will try to add your suggestions.  And it should be fairly easy to add support for those things like %APPDRIVE% in the arguments.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Relative paths in arguments
« Reply #2 on: April 21, 2014, 01:39 PM »
Can you try the new beta and let me know how it does?

Original address: https://www.donationcoder.com/forum/index.php?topic=37353.0