You are a true genious!
fexpcop=: 3 : 0
a=.y
b=. '\' chop a
c=.>{:b
smoutput ucp 'copy "',y,'" "',DIRRY,c,'"'
shell ucp 'copy "',y,'" "',DIRRY,c,'"'
)
styrir''
copy "C:\CTDI\mars2007\UNFORS\ctdi mælingar.xml"
"c:\j601\user\CTDI\UNFORS\ctdi mælingar.xml"
┌───────────────────────────┐
│ 1 file(s) copied. │
└───────────────────────────┘
a. i. ucp 'æ'
230
2007/4/13, Dan Bron <[EMAIL PROTECTED]>:
I don't know if any of my wonton speculation was right, but I can
reproduce the problem on my system, and applying ucp to the literal passed
to shell_jtask_ fixes it:
'iceland' fwrite fn =. jpath '~temp\','.txt',~195 166 { a.
7
fread fn
iceland
require'task'
shell 'copy "',fn,'" "',fn2=.jpath'~temp\ae.txt'
The system cannot find the file specified.
fread fn2 NB. Failure
_1
shell ucp 'copy "',fn,'" "',fn2
1 file(s) copied.
fread fn2 NB. Success.
iceland
Hope this helps,
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=)
`. )----' (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm