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: LBC should resolve environment variables in .lnk files  (Read 10,750 times)

Ric0la

  • Participant
  • Joined in 2009
  • *
  • Posts: 14
LBC should resolve environment variables in .lnk files
« on: March 25, 2020, 09: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):

Code
"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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: LBC should resolve environment variables in .lnk files
« Reply #1 on: March 25, 2020, 11: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
  • *
  • Posts: 14
Re: LBC should resolve environment variables in .lnk files
« Reply #2 on: March 25, 2020, 12:31 PM »
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:


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

Cheers

Rico

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: LBC should resolve environment variables in .lnk files
« Reply #3 on: March 25, 2020, 12:35 PM »
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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: LBC should resolve environment variables in .lnk files
« Reply #4 on: March 25, 2020, 12:50 PM »
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
  • *
  • Posts: 14
Re: LBC should resolve environment variables in .lnk files
« Reply #5 on: March 25, 2020, 12:58 PM »
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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: LBC should resolve environment variables in .lnk files
« Reply #6 on: March 25, 2020, 03:40 PM »
Great, when we get a chance we might try the alternative approach and see how it compares.

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