Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 07, 2016, 12:26:43 PM
  • Proudly celebrating 10 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: Bug: Links run outside of their working directory  (Read 4730 times)

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Bug: Links run outside of their working directory
« on: August 15, 2005, 10:43:24 AM »
Hi!

I have an application which needs to be run inside its installation directory.
The link which is available in the start menu correctly sets the working directory.
When I start the link through Find & Run, this information seems to get lost.

Could it be that Find & Run starts the linked application and not the link itself? What happens if the link also specifys command line arguments?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #1 on: August 15, 2005, 10:51:18 AM »
are you using the very latest (members-only) download of find&run robot?
i recall this was a problem fixed in the latest version..

F&R tries to be smart about this, running apps in their working directory, launching shortcuts when there are commandline arguments in them.

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #2 on: August 15, 2005, 11:19:26 AM »
1.05.19 is what I'm using here.
I installed it over 1.05.12 which I downloaded earlier today. Maybe something went wrong with the update.
Are there any caches kept that would need to be updated?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #3 on: August 15, 2005, 11:27:09 AM »
nope - and installing over old version is fine, just make sure its the new version you're running by checking the title in the caption.

i will check code and see if i see anything - this is definitely something we want to make sure is handled properly.

so its a shortcut on start menu that it's launching, which is setting a working directory in the shortcut - is the working directory different from the application directory?

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #4 on: August 15, 2005, 12:12:29 PM »
No, the working directory is the same as the installation directory.
Don't know if it makes any difference, but I'm running a german  Windows XP here.
The target of the link is "f:\pc-bib\PC_BIB2.EXE" and the "execute in" is "f:\pc-bib\".
Don't know of any other application that doesn't work if it isn't started in its working directory. Normally applications get around this themselves.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #5 on: August 15, 2005, 12:17:07 PM »
i'll check into it tonight - whatever you do don't fix the issue on your side, this is a good opportunity to fix something that should work in f&r- there are some tricky issues to launching shortcuts in order to get maximum good behavior from the operating system, but this should be easy to solve.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #6 on: August 28, 2005, 02:34:20 PM »
rebeeger can you check if this still happens in current version, if so i'd like to try to fix it now and will ask for more details to try to reproduce it.

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #7 on: August 29, 2005, 11:40:57 AM »
Unfortunately it still doesn't work in .24.
There is a simple test for this.
Create a batch testWorkdir.bat somewhere with the following contents:
  dir
  pause

Now create a link to it in your programs folder or somewhere where F&R will find it.
Set the working dir of the link to point to the directory containing the batch file.
Run the link. Now you'll see the directory listing of the specified directory.
Find and Run it in F&R. Now you'll see the directory listing of the directory containing the link.

Cheers,
  Robert

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #8 on: August 29, 2005, 08:00:51 PM »
i love it when people give me a way to recreate and test-
i should have this fixed in next version. - thanks!!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #9 on: September 06, 2005, 09:31:52 AM »
should be fixed now as of 1.06.01

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Re: Bug: Links run outside of their working directory
« Reply #10 on: September 06, 2005, 12:26:12 PM »
Yes, it's fixed. Thanks!

Cheers,
  Robert