PDA

View Full Version : Parameter detection



NewsArchive
06-28-2014, 12:05 AM
Friedrich,

Is there a way to detect an existing shortcut uses a parameter in SB script?

If so, then I'm thinking the Handle String Operation, InStrI could get
that value.
--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-30-2014, 01:02 AM
Hi Russ,

no, you can't retrieve the "parameter" from an existing Shortcut. You can
only retrieve the "target" from an existing Shortcut (Get File Info ->
Shortcut Target).

Friedrich

NewsArchive
06-30-2014, 01:03 AM
Was just trying to see if

C:\C9\bin\Clarion.exe /configdir

was detectable in the target. Specifically, the /configdir parameter
and its optional value.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-30-2014, 01:04 AM
Russ,

> Was just trying to see if
>
> C:\C9\bin\Clarion.exe /configdir
>
> was detectable in the target. Specifically, the /configdir parameter
> and its optional value.

Wouldn't that also have to rely on the assumption that the user didn't
move the shortcut or edit a copy of it?!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
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

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"

NewsArchive
06-30-2014, 01:04 AM
I know of only two places a shortcut could be. <g> Don't think it would
be too difficult in finding it. Then again, the installer could always
prompt the user for where its installed. <bg>

--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-30-2014, 01:05 AM
Russ,

> I know of only two places a shortcut could be.

Then I know more than you!<g> I have shortcuts in folders that are
accessed through shortcuts on my desktop. I also tend to rename the
shortcuts on my desktop and, often, elsewhere.

As an example, all the tools I use for development, including all the
versions of C7-9.1, are located in a folder named "Development" which
is the topmost item in my start menu. In that folder I have numerous
versions of 7, 8, 9 and now 9.1 so the shortcuts have been renamed.

I'm just saying!<g>

Lee White

NewsArchive
06-30-2014, 01:06 AM
That may explain why you call tech support so often! <vbg> Now where
did I leave my big red 1?

--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-30-2014, 01:06 AM
Russ,

> Now where did I leave my big red 1?

Sorry, I gave them all to Mr. Slarve, long ago.<g>

Lee White

NewsArchive
06-30-2014, 01:08 AM
> I know of only two places a shortcut could be. <g> Don't think it
> would be too difficult in finding it. Then again, the installer
> could always prompt the user for where its installed. <bg>

You can store the Shortcuts wherever you want (even in a hidden folder) <g>.
And the "Shortcuts" can be per-machine or per-user (especially on Win 8.1
you'll have most "Shortcuts" stored in a per-user location). It's
impossible to find a per-user Shortcut from an elevated running installer
<g>.

Friedrich