Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Couple of things...

  1. #1

    Default Couple of things...

    1) request to addition to right click popup menu when opening an SB
    project, "Open Project Folder" that would open file explorer in the
    folder of the project directly from within SB.

    2) I'm changing clarionconfigdir.sbi to support /ConfirDir without a
    path where the configuration information is kept inside the Clarion
    bin\Settings folder. Although I've never had any developers say they
    use the command line argument during the install!<g>

    I figured since I'm adding an empty /ConfigDir option to my install
    scripts I'd do it here too... assuming I can stay awake!!!!!


    I still think this should be written into the registry when Clarion is
    installed so shortcuts, start menu items and all other ways to start
    Clarion are support with the command line argument affecting
    absolutely nothing.

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS
    Attached Images Attached Images  

  2. #2

    Default Re: Couple of things...

    Hi Lee,

    > I still think this should be written into the registry when Clarion is
    > installed so shortcuts, start menu items and all other ways to start
    > Clarion are support with the command line argument affecting
    > absolutely nothing.

    I agree. I use just /ConfigDir so it goes into the bin/settings, but
    nothing except that shortcut knows that. In BA I added /ConfigDir
    support several years ago but even if the Clarion shortcut just uses
    /ConfigDir, I have no way of knowing that, so the user has to select a
    folder. It should have been part of the install and IDE.

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  3. #3

    Default Re: Couple of things...

    Lee,

    > 1) request to addition to right click popup menu when opening an SB
    > project, "Open Project Folder" that would open file explorer in the
    > folder of the project directly from within SB.

    Added! Thank you for your suggestion.

    Friedrich
    Attached Images Attached Images  

  4. #4

    Default Re: Couple of things...

    Friedrich,

    > Added! Thank you for your suggestion.

    Thank YOU!

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  5. #5

    Default Re: Couple of things...

    Hi Lee,

    > 2) I'm changing clarionconfigdir.sbi to support /ConfirDir without a
    > path where the configuration information is kept inside the Clarion
    > bin\Settings folder. Although I've never had any developers say they
    > use the command line argument during the install!<g>
    >
    > I figured since I'm adding an empty /ConfigDir option to my install
    > scripts I'd do it here too... assuming I can stay awake!!!!!

    I would be more than happy to add it to the next SB release :-) Just share
    your code <g>.

    Thank you !!!

    Friedrich

  6. #6

    Default Re: Couple of things...

    Friedrich,

    > I would be more than happy to add it to the next SB release :-) Just share
    > your code <g>.

    Once I can get my head wrapped around it I will. Still have a lot on
    my plate now that 11 is in the wild!<g>

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  7. #7

    Default Re: Couple of things...

    Hi Lee,Arnor,

    It is possible to get the shorcut information using the WScript.Shell
    If you use the CreateShorcut method with a link path that already exists
    it open that shorcut and returns an object reference that you can use to
    query the TargetPath and Arguments properties.

    See attached C11 project files and example output.
    Just make sure you enter and existing lnk in the entry as you don't want
    to create new links :-)

    Obviously if you don't know the shortcut you need in advance you'd need to
    do a directory looking for .lnk files and query each for the TargetPath to
    find the one you want.

    Graham
    Attached Images Attached Images  

  8. #8

    Default Re: Couple of things...

    ....hmm obviously _shorcut_ is a shortcut for shortcut l-)

    Graham

  9. #9

    Default Re: Couple of things...

    Graham,

    > Hi Lee,Arnor,
    >
    > It is possible to get the shorcut information using the WScript.Shell
    > If you use the CreateShorcut method with a link path that already exists
    > it open that shorcut and returns an object reference that you can use to
    > query the TargetPath and Arguments properties.

    Doesn't help unless the developer remembers to set the Start Menu item
    and never EVER starts the IDE from the install folder directly.

    /ConfigDir needs to be an INSTALL option that's written into the
    registry so no matter how Clarion is loaded it uses the setting
    correctly and adding it to a shortcut or menu item is ignored unless
    the IDE asks you if you want to change the location as it loads in
    which case the registry is updated. But that part really isn't needed
    nor desired so DO IT IN THE INSTALL AND BE DONE WITH IT!<g>

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  10. #10

    Default Re: Couple of things...

    Hi Graham,

    > It is possible to get the shorcut information using the WScript.Shell

    Not going to work. What shortcut and where? That's the whole thing.
    The shortcut can be in the main menu. On the desktop, in a folder on
    the desktop or just about anywhere. There is no way to KNOW 100%

    > Obviously if you don't know the shortcut you need in advance you'd need to
    > do a directory looking for .lnk files and query each for the TargetPath to
    > find the one you want.

    Those files can literally be anywhere. And they could be named
    anything. "Clarion", "Clarion 11", "Clarion 10", "That Dev Program",
    "Whatever" Some may say "Clarion 11", while others say "Clarion -
    Shortcut" or whatever. And different versions of windows are putting
    this stuff in different folders and God knows what.

    OneDrive has fairly recently been plugged into the Windows system, so
    your shortcuts may reside in OneDrive! Lost most of mine on one machine
    because I deleted a bunch of stuff I wasn't using from another and then
    it went ahead and synced the whole mess via OneDrive and removed all
    those same shortcuts from another machine. So, your shortcuts can be
    just about anywhere.

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •