Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Perl will always provide the null. -- Larry Wall in <199801151818.KAA14538@wall.org>


devel / comp.lang.xharbour / Re: shellexecute()

SubjectAuthor
* shellexecute()timepro timesheet
`* Re: shellexecute()dlzc
 `* Re: shellexecute()timepro timesheet
  `- Re: shellexecute()dlzc

1
shellexecute()

<03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17078&group=comp.lang.xharbour#17078

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:5ccc:0:b0:49a:87e:b21c with SMTP id iu12-20020ad45ccc000000b0049a087eb21cmr6533128qvb.28.1662627027851;
Thu, 08 Sep 2022 01:50:27 -0700 (PDT)
X-Received: by 2002:a25:8a0e:0:b0:692:8410:1a8e with SMTP id
g14-20020a258a0e000000b0069284101a8emr5860638ybl.621.1662627027623; Thu, 08
Sep 2022 01:50:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 8 Sep 2022 01:50:27 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=96.242.45.184; posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 96.242.45.184
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com>
Subject: shellexecute()
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Thu, 08 Sep 2022 08:50:27 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1162
 by: timepro timesheet - Thu, 8 Sep 2022 08:50 UTC

taxfile='Z:\TAX\EINVOICE\010922_080922.XXX' // (text file)
from inside my app, how to open it in a browser:
SHELLEXECUTE( 0, 0, taxfile, 0, 0, 1 ) opens the file in notepad.

thank you

Re: shellexecute()

<0e71a65d-6ac5-4823-b715-5c83f0181eebn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17079&group=comp.lang.xharbour#17079

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:5dea:0:b0:4ac:6ffc:74b2 with SMTP id jn10-20020ad45dea000000b004ac6ffc74b2mr6335378qvb.78.1662659604227;
Thu, 08 Sep 2022 10:53:24 -0700 (PDT)
X-Received: by 2002:a25:d0e:0:b0:6ad:ebd0:3dc2 with SMTP id
14-20020a250d0e000000b006adebd03dc2mr5878430ybn.253.1662659603989; Thu, 08
Sep 2022 10:53:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 8 Sep 2022 10:53:23 -0700 (PDT)
In-Reply-To: <03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0e71a65d-6ac5-4823-b715-5c83f0181eebn@googlegroups.com>
Subject: Re: shellexecute()
From: dlzc1@cox.net (dlzc)
Injection-Date: Thu, 08 Sep 2022 17:53:24 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
 by: dlzc - Thu, 8 Sep 2022 17:53 UTC

On Thursday, September 8, 2022 at 1:50:28 AM UTC-7, timec...@gmail.com wrote:
> taxfile='Z:\TAX\EINVOICE\010922_080922.XXX' // (text file)
> from inside my app, how to open it in a browser:
> SHELLEXECUTE( 0, 0, taxfile, 0, 0, 1 ) opens the file in notepad.

I think you need to pass "chrome @taxfile", or whatever browser is installed. A different kettle of fish.

David A. Smith

Re: shellexecute()

<03e6e1f0-6200-4e10-ae19-23d732bc5151n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17080&group=comp.lang.xharbour#17080

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:e65:b0:4ac:8302:f7d3 with SMTP id jz5-20020a0562140e6500b004ac8302f7d3mr5220175qvb.80.1662730031731;
Fri, 09 Sep 2022 06:27:11 -0700 (PDT)
X-Received: by 2002:a05:6902:10c4:b0:6ac:9744:b2cc with SMTP id
w4-20020a05690210c400b006ac9744b2ccmr11066506ybu.583.1662730031461; Fri, 09
Sep 2022 06:27:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 9 Sep 2022 06:27:11 -0700 (PDT)
In-Reply-To: <0e71a65d-6ac5-4823-b715-5c83f0181eebn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=96.242.45.184; posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 96.242.45.184
References: <03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com> <0e71a65d-6ac5-4823-b715-5c83f0181eebn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <03e6e1f0-6200-4e10-ae19-23d732bc5151n@googlegroups.com>
Subject: Re: shellexecute()
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Fri, 09 Sep 2022 13:27:11 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2105
 by: timepro timesheet - Fri, 9 Sep 2022 13:27 UTC

On Thursday, September 8, 2022 at 11:23:24 PM UTC+5:30, dlzc wrote:
> On Thursday, September 8, 2022 at 1:50:28 AM UTC-7, timec...@gmail.com wrote:
> > taxfile='Z:\TAX\EINVOICE\010922_080922.XXX' // (text file)
> > from inside my app, how to open it in a browser:
> > SHELLEXECUTE( 0, 0, taxfile, 0, 0, 1 ) opens the file in notepad.
> I think you need to pass "chrome @taxfile", or whatever browser is installed. A different kettle of fish.
>
> David A. Smith

thank you.

nope, did not open the taxfile. ('chrome@taxfile')
so, i just copied the .json(text) file to temp.HTML.
now, shellexecute(...temp.html...) opens in the browser for viewing.
(after exit, delete temp.html)
but some lines are 350+ char long, chrome doesn't wrap/scroll that line. the user can view only that fits the screen).

-if i open as shellexecute(...taxfile...), it opens in notepad, which the user can inadvertently edit.

Re: shellexecute()

<e1d5e077-ccd9-46cf-8fcb-5cd4233698f4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17081&group=comp.lang.xharbour#17081

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:174b:b0:343:1fc:14d8 with SMTP id l11-20020a05622a174b00b0034301fc14d8mr12923241qtk.579.1662740808580;
Fri, 09 Sep 2022 09:26:48 -0700 (PDT)
X-Received: by 2002:a25:6647:0:b0:6a9:3962:a236 with SMTP id
z7-20020a256647000000b006a93962a236mr12567888ybm.372.1662740808336; Fri, 09
Sep 2022 09:26:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 9 Sep 2022 09:26:47 -0700 (PDT)
In-Reply-To: <03e6e1f0-6200-4e10-ae19-23d732bc5151n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <03e48015-bb46-46b6-8625-c8a7554e07f6n@googlegroups.com>
<0e71a65d-6ac5-4823-b715-5c83f0181eebn@googlegroups.com> <03e6e1f0-6200-4e10-ae19-23d732bc5151n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e1d5e077-ccd9-46cf-8fcb-5cd4233698f4n@googlegroups.com>
Subject: Re: shellexecute()
From: dlzc1@cox.net (dlzc)
Injection-Date: Fri, 09 Sep 2022 16:26:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1913
 by: dlzc - Fri, 9 Sep 2022 16:26 UTC

On Friday, September 9, 2022 at 6:27:12 AM UTC-7, timec...@gmail.com wrote:
> nope, did not open the taxfile. ('chrome@taxfile')

I think the space is required 'chrome @taxfile'. Clipper should have "macro substituted" in the string, but you can always explicitly
"chrome " + chr(34) + taxfile + chr(34) (as an argument in your shellexecute)
.... when passing, but line length as you state is still a problem

....
> -if i open as shellexecute(...taxfile...), it opens in
> notepad, which the user can inadvertently edit.

Could:
Mark the file readonly, prior to passing, and
Pass it to wordpad ('wordpad @taxfile'). Or the harder-to-read explicit version above.

David A. Smith

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor