Try 1!:55<'a_file_I_know_does_not_exist.txt' . Do you get the same error? In particular, if you try to delete a file that does not exist, do you get "interface error" or "file name error"?
If the latter, then I'd lean towards your original diagnosis: you've got a permissioning issue. For some reason, your J session isn't allowed to alter the directory 'd:\temp' (though it can list its contents). Can you restart J as an administrator? Try right-clicking on your J icon and selecting "run as administrator" (if that option doesn't show up, try holding down CTRL or SHIFT as you right click). You'll probably need to provide an administrator password. Does running J with administrative priveleges allow you to delete (or read) the file? If so, then you need to change the permissions on that folder (you need read and write access to create and delete files) or on the file itself (to read/write the file contents, as opposed to creating/deleting files in that directory). Make sure to give read/write permissions to whichever user you typically run J under. You might also consider avoiding the explicit working-directory change, allowing J to run from its default working directory (i.e. where the executable is installed), and just ensuring all application file references have fully-qualified paths. I don't think 1!:44 has seen much use or testing in the wild. At least not in a long while. As an alternative, instead of 1!:44, you could just change the shortcut that launches J to start it in d:\temp . That (Windows' shortcuts) is probably a better-exercised area than J's 1!:44 . If none of that works, I'm kinda stumped. As a last ditch resort, you can try running cderx'', though I don't think that captures errors generated by system calls J makes under the covers, only explicit DLL calls made in user space. -Dan ----- Original Message --------------- Subject: Re: [Jgeneral] 1!:55 on W7/64 From: greg heil <[email protected]> Date: Sat, 3 May 2014 21:30:02 -0700 To: General forum <[email protected]> Dan >Thanks for answering. i did do a set working directory first. But i made a >full pathname (after setting the directory) 1!:44 showd=:temp=:'d:\temp' and i still got an interface error with 1!:55 (<temp,'\','test' dirfind '') however i seem to have generally screwed up my interface to the file system as i can not only not erase, but i cannot read! 1!:1 (<temp,'\','test' dirfind '') also gets an 'interface error'!-( BTW dirfind is a J standard utility: 'test' dirfind '' test.txt greg ~krsnadas.org -- from: Dan Bron <[email protected]> to: [email protected] date: 3 May 2014 20:48 subject: Re: [Jgeneral] 1!:55 on W7/64 >Without investigating this directly, my suspicion is your 'dirfind' utility >returns files matching the name pattern anywhere in the nominated directory, >including recursively nested subdirectories. However, it looks as if its >output does not include directory information (i.e. the absolute path of the >file). >I'm also guessing that when you pass an unqualified filename to 1!:55, as in >'test.txt' with no directory information, it attempts to delete that file from >J's working directory (typically J's install directory or its bin >subdirectory). >So unless the file test.txt is in J's working directory, when you ask 1!:55 to >delete it, it can't find the file you're talking about, and consequently >complains. To fix the issue, you'll have to provide 1!:55 with a >fully-qualified filename, including absolute path. Or I could be completely off base :) -Dan -- from: greg heil <[email protected]> to: General forum <[email protected]> date: 3 May 2014 20:27 subject: 1!:55 on W7/64 1!:55 seems to fail on my W7/64 machine in J801. Perhaps it is a permission problem. If so how do i elevate J`s permissions? eg 1!:55 <'test' dirfind '' |interface error | 1!:55<'test'dirfind'' though 'test' dirfind '' test.txt before and after greg ~krsnadas.org ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
