Re: [Jprogramming] Win API calls

2015-10-23 Thread Joe Bogner
bill, thanks. good examples. clean. On Fri, Oct 23, 2015 at 10:20 AM, bill lam wrote: > W is the unicode version,better to use the ascii version > since drive letter is always in latin. > > > 'len max var'=:'kernel32 GetLogicalDriveStringsA i i *c' cd > ((#;[)(4*26)#' ') > ><;._2 len{.var

Re: [Jprogramming] Win API calls

2015-10-23 Thread bill lam
W is the unicode version,better to use the ascii version since drive letter is always in latin. > 'len max var'=:'kernel32 GetLogicalDriveStringsA i i *c' cd ((#;[)(4*26)#' > ') ><;._2 len{.var > +---+---+---+---+---+---+---+---+---+---+---+---+ > |C:\|H:\|J:\|Q:\|R:\|S:\|T:\|U:\|V:\|W:\|Y

Re: [Jprogramming] Executing Locked Scripts from Nouns

2015-10-23 Thread Raul Miller
https://en.wikipedia.org/wiki/Chroot Thanks, -- Raul On Fri, Oct 23, 2015 at 8:32 AM, R.E. Boss wrote: > "chrooted user" ??? > > > R.E. Boss > > >> -Original Message- >> From: programming-boun...@forums.jsoftware.com [mailto:programming- >> boun...@forums.jsoftware.com] On Behalf Of

Re: [Jprogramming] Win API calls

2015-10-23 Thread Devon McCormick
Joe - thanks for the complete, working example. On Fri, Oct 23, 2015 at 9:12 AM, Joe Bogner wrote: > Here's a couple ways to do it (tested on j-64): > > NB. let J manage the memory > > z=: 2000 $ 'x' > > 'len max var'=:'kernel32 GetLogicalDriveStringsW x x *s' cd (2000;z) > > (len*JCHAR){.var >

Re: [Jprogramming] Win API calls

2015-10-23 Thread Joe Bogner
Here's a couple ways to do it (tested on j-64): NB. let J manage the memory z=: 2000 $ 'x' 'len max var'=:'kernel32 GetLogicalDriveStringsW x x *s' cd (2000;z) (len*JCHAR){.var NB. manually allocate the memory z2=: mema 2000 'len max var'=:'kernel32 GetLogicalDriveStringsW x x x' cd (2000;z

Re: [Jprogramming] Executing Locked Scripts from Nouns

2015-10-23 Thread R.E. Boss
"chrooted user" ??? R.E. Boss > -Original Message- > From: programming-boun...@forums.jsoftware.com [mailto:programming- > boun...@forums.jsoftware.com] On Behalf Of Raul Miller > Sent: vrijdag 23 oktober 2015 2:11 > To: Programming forum > Subject: Re: [Jprogramming] Executing Locked