topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 11:20 am
  • 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: LBC should resolve environment variables in .lnk files  (Read 5102 times)

Ric0la

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
LBC should resolve environment variables in .lnk files
« on: March 25, 2020, 04:17 AM »
Hi all

Just tried LBC and started to love it, but there's one little glitch which keeps me from using it. In our company, we're developing software for corporate customers, which we sometimes also manage. I've got plenty of ".lnk" files which are generated to access these off site systems in different ways: Putty, SFTP, application GUI etc. The generated links make heavy use of environment variables to allow all employees use the same files. Example target content (Putty):

"C:\Program Files (x86)\PuTTY\putty.exe" -load %NCPROF% -ssh %NCUSER%@xxx.xxx.xxx.com -i "%XCK%\keys\%NCUSER%.ppk" -X

Now LBC ignores this and sends the variables clear text, which of course messes up things.

Any chance this gets implemented? Could be a no brainer, but it doesn't have to ...  ;)

Cheers

Rico

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #1 on: March 25, 2020, 06:05 AM »
Can you elaborate a little bit about what function you are using where LBC is dealing with the .lnk files incorrectly?
There are several places in the program where LBC deals with .LNK files -- sometimes it copies their properties, sometimes it launches them directly, etc.  I'd like to know which cases you are using.

Ric0la

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #2 on: March 25, 2020, 07:31 AM »
Hi mouser

Sure, sorry I wasn't really clear on that. I'm only using directory folder nodes, two of them. That's it. I created two of them, they're pointing to the root folder of my structure. Nothing fancy.

So my screen looks like:


Options
File myfile.mcf
-- Dock
---- Folder
---- Folder

Cheers

Rico

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #3 on: March 25, 2020, 07:35 AM »
So your using a node on LBC that shows the contents of a folder, and when you click a .lnk file in the directory contents menu shown, it doesn't replace the environmental variables in those links properly?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #4 on: March 25, 2020, 07:50 AM »
Can you try this beta and see how it works:

(There are actually two ways I could handle this -- resolve the environmental variables in the .LNK files, or launch the .LNK files directly; this version tries the latter in this case, but I could also try the former method.  Let's try this one first).

Ric0la

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #5 on: March 25, 2020, 07:58 AM »
Works perfectly fine, thanks! I only tried one of the links, I'll keep you posted when I come across something that doesn't work!

 :up: :up:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: LBC should resolve environment variables in .lnk files
« Reply #6 on: March 25, 2020, 10:40 AM »
Great, when we get a chance we might try the alternative approach and see how it compares.