flash drive launch on insert?

2020-04-08 Thread ToddAndMargo via perl6-users
Hi All, This is a long shot, but have any of you written a Windows program that will detect when a flash drive has been inserted? https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerdevicenotificationw Many thanks, -T

Re: How to read a particular environmental variable?

2020-04-08 Thread ToddAndMargo via perl6-users
On 2020-04-07 23:56, Simon Proctor wrote: > You might want to take a look at Trait::Env, partly because I've not > tested it in Windows and I'd be interested to know if it works well. https://modules.raku.org/dist/Trait::Env:cpan:SCIMON > On Wed, 8 Apr 2020 at 09:22,

Re: How to read a particular environmental variable?

2020-04-08 Thread ToddAndMargo via perl6-users
On 2020-04-08 19:46, ToddAndMargo via perl6-users wrote: And %*ENV    raku -e "say %*ENV;" (Any) My bad: %windir% is lower case raku -e "say %*ENV;" C:\WINDOWS Trait:Env still does not work: raku -e "use Trait::Env; my $windir is env; say $windir;" (Any)

Re: How to read a particular environmental variable?

2020-04-08 Thread ToddAndMargo via perl6-users
On 2020-04-07 23:56, Simon Proctor wrote: > You might want to take a look at Trait::Env, partly because I've not > tested it in Windows and I'd be interested to know if it works well. https://modules.raku.org/dist/Trait::Env:cpan:SCIMON On Wed, 8 Apr 2020 at 09:22,

Re: sleep 3600 vs task scheduler

2020-04-08 Thread ToddAndMargo via perl6-users
On 2020-04-07 20:44, ToddAndMargo via perl6-users wrote: On 2020-04-07 20:39, Paul Procacci wrote: What happens when you try it? What impact do you observe? My guess is the impact is exactly the time it takes for your cpu to perform the initial context switch for the syscall, and then another

Re: How to read a particular environmental variable?

2020-04-08 Thread Simon Proctor
You might want to take a look at Trait::Env, partly because I've not tested it in Windows and I'd be interested to know if it works well. On Wed, 8 Apr 2020, 03:25 ToddAndMargo via perl6-users, < perl6-users@perl.org> wrote: > On 2020-04-07 18:25, Brad Gilbert wrote: > > Of course %*ENV is case

Re: zef and tar.gz

2020-04-08 Thread ToddAndMargo via perl6-users
On 2020-04-05 17:30, ToddAndMargo via perl6-users wrote: On 2020-03-23 21:28, ToddAndMargo via perl6-users wrote: Hi All, What is this all about?  Rakudo Star forget another dependency?  psunzip? Windows 7, x64 SP1 K:\Windows\NtUtil>raku -v This is Rakudo version 2020.01 built on MoarVM

Re: How to read a particular environmental variable?

2020-04-08 Thread Simon Proctor
Well he is me so let my try and explain. The idea is to be able to simply assign Env vars to variables so for example you might do use Trait::Env; my $windir is env; And then $windir should be assigned the value of the %*ENV variable at runtime. There's a bunch of other stuff in it too, it's

Re: Dropbox and IO?

2020-04-08 Thread Shlomi Fish
On Tue, 7 Apr 2020 11:29:18 -0500 Stephen Wilcoxon wrote: > Dropbox on Windows is a real directory. It is just monitored by the > Dropbox software and files (or possibly pieces - not sure) are uploaded and > downloaded when necessary to keep them in sync with the server. > Thanks for the

Re: How to read a particular environmental variable?

2020-04-08 Thread ToddAndMargo via perl6-users
On Wed, 8 Apr 2020, 03:25 ToddAndMargo via perl6-users, mailto:perl6-users@perl.org>> wrote: On 2020-04-07 18:25, Brad Gilbert wrote: > Of course %*ENV is case sensitive, hashes are case sensitive. > > say %*ENV.^name; # Hash > > %*ENV gets populated with the