Unable to open file

Using (or providing) components based on the "Win32" framework

Unable to open file

Postby lancepawl on Tue Nov 21, 2017 4:27 pm

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
lancepawl
 
Posts: 10
Joined: Tue Sep 05, 2017 1:43 pm

Re: Unable to open file

Postby Vince|Dyalog on Wed Nov 22, 2017 9:50 am

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
Vince|Dyalog
 
Posts: 408
Joined: Wed Oct 01, 2008 9:39 am

Re: Unable to open file

Postby Vince|Dyalog on Thu Nov 23, 2017 11:49 am

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
Vince|Dyalog
 
Posts: 408
Joined: Wed Oct 01, 2008 9:39 am


Return to Windows: GUI, COM/OLE/ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest