Page 1 of 1

Unable to open file

Posted: Tue Nov 21, 2017 4:27 pm
by lancepawl
Hello,
I transferred a WINAPL workspace to Dyalog and so far everything has been running pretty well, except for one thing. I'm trying to open a file and it says the system can't find it even though the file is there. For example, if I execute

'C:\file.doc' ⎕NTIE ¯1

I get the error:

FILE NAME ERROR: Unable to open file ("The system cannot find the file specified")

Not sure why it can't find the file since it exists at C:\.

I am using Dyalog 16.0.30781.0 32 Unicode on Windows 7.

Thanks & Regards,

Lance

Re: Unable to open file

Posted: Wed Nov 22, 2017 9:50 am
by Vince|Dyalog
Hi Lance,

C:\ is an odd directory and is protected by Windows 7.

Normally, I cannot create a file there.

Could you get some details from the APL expressions below and email me at Dyalog Support please?


      ⍝ After you get the error for this, 
'C:\file.doc' ⎕NTIE ¯1

⍝What information does ⎕DMX contain?

⎕DMX.(⍪{⍵(⍎⍵)}¨⎕NL-2)

0 4 5 6 (⎕NINFO⍠1) 'c:\*.doc'

0 4 5 6 (⎕NINFO⍠1) 'C:\Users\YourNameHere\AppData\Local\VirtualStore\*.doc'
⍝ Obviously, please replace YourNameHere with your Windows username...


We will discuss it by email, and I will update this forums thread with the conclusion once we have found something.

Regards,

Vince

Re: Unable to open file

Posted: Thu Nov 23, 2017 11:49 am
by Vince|Dyalog
Conclusion:

Lance has contacted Dyalog Support. I asked some questions, and it turns out that the file is in a subdirectory of C:\ and is actually named file.doc.txt and the .txt was hidden by Windows Explorer.

Vince