Previous Thread
Next Thread
Print Thread
ATE: failure to write to local dir #33394 17 Sep 20 08:52 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Good day -

I have a customer PC that when printing from ATE or even preview in APEX will display an error that it cannot locate the file in the local directory...

c:\user\documents\apex\...

I can access this dir from notepad w/o issue. There are some older print files in this dir from about 2 weeks ago but for some reason it seems that it cannot write there. If i try to transfer a test file there manually from linux it seems to work.

I don't want to establish another transfer directory yet, so in the meantime where i can look in the way of a trace to tell me what the reason for the failure is? And would this be a server or pc based trace?

TIA

Re: ATE: failure to write to local dir [Re: Frank] #33395 17 Sep 20 10:30 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Hmmm....

Are you getting an error message box? Does it have an error code in it?

The problem is almost certainly on the PC side, whatever it is. You might be able to get some clues by opening the debug message window and activating the following traces: FOPENS, ATE, LP, GDIPRT, XDEBUG. Then print a file to the PC. You'll want to turn off the XDEBUG trace shortly thereafter because it otherwise outputs too much stuff. The trace lines that seem relevant are ...

Code
7 15:10:46 <TELNET:45e4> TAB(-10,85);5,PRINT,3.4(135)
8 15:10:46 <TELNET:45e4> TAB(-10,54);Þtskaap.prx,,0,,262144,1,2296,1
15 15:10:46 <TELNET:45e4> AUX ON rcvd, w.wtc = 0
16 15:10:46 <TELNET:45e4> Aux print: switches=0x4(4), ptrfile=tskaap.prx, ptrname=, mime=0, copies=1, pfileize=2296
18 15:10:46 <TELNET:45e4> Aux print: using printer from config: <Prompt>
19 15:10:46 <TELNET:45e4>   fopen(C:\Users\joaqu\OneDrive\Documents\APEX\tskaap-5.prx,w) returns 0x1188520


Line 7 shows the program launch on the server (PRINT.LIT in my case)
Line 8 is the AG_SPOOLCFG
Lines 15-18 are the start of the aux printing
Line 19 is the opening of the file to capture the text (which I think is the one that's failing, although I'm not 100% sure.)

Note that the combination of the FOPENS and XDEBUG trace will cause the fopen() function to output an additional trace on failure.

Also, note that c:\user\documents\apex\ isn't exactly the expected directory; maybe that was just a typo but I would expect it to be more like c:\users\<username>\Documents\APEX. (You can see from my traces above that in my case ithe Documents directory got relocated under OneDrive. Which I don't recommend.)

Re: ATE: failure to write to local dir [Re: Frank] #33396 17 Sep 20 11:28 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Thanks for the reply... Yes, i did get the dialog complaining about the missing file but neglected to capture it before getting off the customer PC.

Correct, i omitted the \username\ portion.

Let me dig further tomorrow and report back. Tx.

Re: ATE: failure to write to local dir [Re: Frank] #33399 18 Sep 20 03:44 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Good Friday -

I am attaching the error dialog plus what i think is pertinent in the traces... TIA


I think this is what you might be looking for...

136 10:50:30 <TELNET:45e4> AUX ON rcvd, w.wtc = 0
137 10:50:30 <TELNET:45e4> Aux print: switches=0x80084(524420), ptrfile=qui001.prt, ptrname=, mime=0, copies=1, pfileize=870
138 10:50:30 <TELNET:45e4> ate_read_registry SOFTWARE\MicroSabio\JBCT\ATE\Hosts\EdgeMED
139 10:50:30 <TELNET:45e4> Aux print: using printer from config: <Prompt>
140 10:50:30 <TELNET:45e4> fopen(C:\Users\Arelis\Documents\APEX\qui001-1.prt,w) returns 0x0
141 10:50:30 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
142 10:50:31 <TELNET:45e4> Rcv 927 bytes
143 10:50:31 <TELNET:45e4> AUX OFF rcvd, w.wtc = 0
144 10:50:31 <TELNET:45e4> TAB(-10,88);Þ<>
145 10:50:31 <TELNET:45e4> -> send response (kbd): <> (3 bytes, icc=0)
146 10:50:31 <TELNET:45e4> sending kbd response directly (3 bytes): <> <Þ
147 10:50:31 <TELNET:45e4> sendkbd exit sts: 0x20

{later there is this...}

163 10:50:31 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
164 10:50:31 <TELNET:45e4> Rcv 113 bytes
165 10:50:31 <TELNET:45e4> TAB(-10,95);
166 10:50:31 <TELNET:45e4> TAB(-10,33);Þ16,PNG1601,0,0,0
167 10:50:47 <TELNET:45e4> asgdip_paint hwnd=120676
168 10:50:47 <TELNET:45e4> asgdip_paint hwnd=c6066c
169 10:51:28 <TELNET:45e4> WM_WINDOWPOSCHANGING (f:13) (hwnd:250532 v:1, pvhwnd:0, elapse:5399437 ms
170 10:51:28 <TELNET:45e4> Sysmsgv(SYSMSG,4,13) cache error!
171 10:51:28 <TELNET:45e4> Sysmsgv(SYSMSG,4,14) cache error!
172 10:51:28 <TELNET:45e4> asgdip_paint hwnd=c6066c


I see the cache error but cant locate a new sysmsg.usa on the soslib site to decode... perhaps you could shoot me a new one or link one up here please...

Attached Files JACK.PNG
Re: ATE: failure to write to local dir [Re: Frank] #33400 18 Sep 20 04:51 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
So the trace ...
Quote

fopen(C:\Users\Arelis\Documents\APEX\qui001-1.prt,w) returns 0x0


does indicate failure (the return value should not be 0), but unfortunately it doesn't give us any additional details beyond the rather misleading message "cannot find the file". We're creating the file, so it is hardly surprising that it isn't "found". We can guess that it can't find the directory, but one would expect it to give a different error then. And, since you can write to the file with an explicit file transfer, or Notepad, it hardly seems likely that the directory has become inaccessible. So I have to admit I'm baffled.

I'm guessing that if you tried your manual transfer using ZTXFER with the /ATE switch, you'll get the same problem? (The /ATE switch tells it to use the terminal channel, just like it does for printing, rather than FTP.)

All of that would suggest that the file open library routine used by ATE, fopen(fspec,mode) is susceptible to some odd condition causing it to fail, whereas the file open library routine used by Notepad (there are several possibilities, but I'm guessing CreateFile(), is not, fopen() is the standard platform-independent function used for opening a stream, whereas CreateFile() is Windows-only. It has a lot of extra parameters relating to security factors, which may explain why it is working when the other isn't, but unfortunately it uses a different type of handle, making it difficult to swap one for the other without affecting all of the routines that read/write to sequential files. And none of that explains why it works in 99.9999% of the ATE workstations that we know of, and was working at this one as well up until a few days ago?

At this point I would be tempted to just recreate the directory (rename the old one and create a new one), making sure it offers full read/write privileges to all the relevant users. If that doesn't work, Plan B would be to define the APEX environment variable to point to some other directory that we know works, perhaps underneath the main ATE directory?

While stewing over that, here's a quick fix to the "cache error" issue caused by missing a couple of messages. You can just use VUE and yank these into your existing SYSMSG.USA. (I'll see about updating the UPDCUR system later.)

Code
004,001,Cut
004,002,Copy
004,003,Paste
004,004,Select All
004,005,Clear Selection
004,006,Clear Messages
004,007,Properties
004,008,Dump Font Cache
004,009,Print Screen
004,010,Set Debug Mode
004,011,Paste Special
004,012,Copy Cell
004,013,Dump Control Table
004,014,Close

Re: ATE: failure to write to local dir [Re: Frank] #33401 18 Sep 20 05:09 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Hmmm, actually i did remove the directory the other day and create it manually. However i didn't test with /ATE switch when i performed the file transfer...

Let me give that a go...

Re: ATE: failure to write to local dir [Re: Frank] #33402 18 Sep 20 05:27 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
You know that I don't know nothing about ATE but, could it be the case of that operation being executed by a system user w/o permissions over that folder?
Have you checked in the folder's Properties which users can do what?
If you created it manually, it could have been indexed to your user, that opens the Notepad and does other user driven operations, but ATE don't.
Just shooting

Last edited by Jorge Tavares - UmZero; 18 Sep 20 05:29 PM.

Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: ATE: failure to write to local dir [Re: Frank] #33403 18 Sep 20 06:16 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Hey Jorge - it certainly smells like that... but being more a linux guy i more or less "tolerate" windows wink

Ill poke around the directory a bit more when i can get reconnected.

Re: ATE: failure to write to local dir [Re: Frank] #33404 18 Sep 20 07:23 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The detail that doesn't quite fit is that ATE (effectively equivalent to A-Shell/Windows client) runs in the same user space as Notepad would. But, as I noted above, Notepad is no doubt using the more sophisticated Windows CreateFile() function, potentially with different security flags than the default ones used by fopen().

But that makes me think of another thing you could try: Use the File > Open Local Session and from the new dot prompt, try:

Code
.VUE C:\Users\Arelis\Documents\APEX\qui001-1.prt


It should prompt you to create the file, then let you edit it. Type in something, save and exit, and then repeat the command to see if it actually saved it.

VUE should be using pretty much the same kind of file i/o as ATE printing, so it should have the same kind of issues. Which might not tell us anything new, other than eliminating any question about it being something peculiar to ATE, since the local session is pretty much plain vanilla A-Shell/Windows.

Re: ATE: failure to write to local dir [Re: Frank] #33405 18 Sep 20 07:29 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
OK i don't know if we are getting any closer or not...

I tried the /ate option and it ended with a "unknown error #3". Here is the trace... I am not sure what to look at here....

124 14:58:37 <TELNET:45e4> TAB(-10,85);5,ZTXFER,1.3(108)
125 14:58:37 <TELNET:45e4> Setting KS_HOLD for tab(-10,85)
126 14:58:37 <TELNET:45e4> TAB(-10,54);C:\Users\Arelis\Documents\APEX\a20001.prt,NULL,26840,,1048576
127 14:58:37 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
128 14:58:37 <TELNET:45e4> ATE loop: tcki=0
129 14:58:37 <TELNET:45e4> WaitMessage...
130 14:58:37 <TELNET:45e4> WaitMessage rtn
131 14:58:37 <TELNET:45e4> ATE loop: tcki=0
132 14:58:37 <TELNET:45e4> Rcv 35789 bytes
133 14:58:38 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
134 14:58:38 <TELNET:45e4> Rcv 56 bytes
135 14:58:38 <TELNET:45e4> TAB(-10,31);Þ"C:\Users\Arelis\Documents\APEX\a20001.prt",0,0,0
136 14:58:38 <TELNET:45e4> -> send response (kbd): -1,0,0,0 (9 bytes, icc=0)
137 14:58:38 <TELNET:45e4> sending kbd response directly (9 bytes): -1,0,0,0 <Þ
138 14:58:38 <TELNET:45e4> sendkbd exit sts: 0x20
139 14:58:38 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
140 14:58:38 <TELNET:45e4> Rcv 7 bytes
141 14:58:38 <TELNET:45e4> TAB(-10,88);Ã’
142 14:58:38 <TELNET:45e4> -> send response (kbd): (1 bytes, icc=0)
143 14:58:38 <TELNET:45e4> sending kbd response directly (1 bytes): Ã’ <
144 14:58:38 <TELNET:45e4> sendkbd exit sts: 0x20
145 14:58:38 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
146 14:58:38 <TELNET:45e4> Rcv 56 bytes
147 14:58:38 <TELNET:45e4> TAB(-10,31);Þ"C:\Users\Arelis\Documents\APEX\a20001.prt",0,0,0
148 14:58:38 <TELNET:45e4> -> send response (kbd): -1,0,0,0 (9 bytes, icc=0)
149 14:58:38 <TELNET:45e4> sending kbd response directly (9 bytes): -1,0,0,0 <Þ
150 14:58:38 <TELNET:45e4> sendkbd exit sts: 0x20
151 14:58:38 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
152 14:58:38 <TELNET:45e4> Rcv 17 bytes
153 14:58:38 <TELNET:45e4> TAB(-10,45);ÞATECACHE,1
154 14:58:38 <TELNET:45e4> -> send response (kbd): C:\EdgeMED\cache (17 bytes, icc=0)
155 14:58:38 <TELNET:45e4> sending kbd response directly (17 bytes): C:\EdgeMED\cache <Þ
156 14:58:38 <TELNET:45e4> sendkbd exit sts: 0x20
157 14:58:38 <TELNET:45e4> Reading (kbdsts=0x20, guists=0x221) ...
158 14:58:38 <TELNET:45e4> Rcv 46 bytes
159 14:58:38 <TELNET:45e4> TAB(-10,49);
160 14:58:38 <TELNET:45e4> Releasing KS_HOLD
161 14:58:38 <TELNET:45e4> WaitMessage...
162 14:58:38 <TELNET:45e4> WaitMessage rtn
163 14:58:38 <TELNET:45e4> ATE loop: tcki=0
164 14:58:38 <TELNET:45e4> WaitMessage...
165 14:58:38 <TELNET:45e4> WaitMessage rtn
166 14:58:38 <TELNET:45e4> ATE loop: tcki=0
167 14:58:38 <TELNET:45e4> WaitMessage...
168 14:58:38 <TELNET:45e4> WaitMessage rtn
169 14:58:38 <TELNET:45e4> ATE loop: tcki=0
170 14:58:38 <TELNET:45e4> WaitMessage...
171 14:58:39 <TELNET:45e4> WaitMessage rtn

Then i tried a straight ztxfer w/o the ATE swtich and got this:

FTPDLX error code = 30024 (Error occurred trying to write to local file.)

I can however send to another directory... so perhaps some issue in the users folder. I snapped the permission of this directory but again it looks fine to me... but im not a windows engineer wink


Attached Files jack2.PNG
Last edited by Frank; 18 Sep 20 07:40 PM.
Re: ATE: failure to write to local dir [Re: Frank] #33406 18 Sep 20 07:44 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
PS: Sorry Cap crossed posts.. .didnt have a chance to try your VUE test... that might help narrow it down as well... i will most likely now have to wait til Monday to persue further but at least you can take a gander at the above.

Re: ATE: failure to write to local dir [Re: Frank] #33407 18 Sep 20 08:46 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The fact that the regular ZTXFER (SFTP) also fails suggests the issue is more than just related to the fopen() library call used by ATE. (The SFTP client would have probably used CreateFile()).

Are you sure that the logged in user is Arelis?

Try entering %documents% in the Start>Search bar to verify that it takes you to the same directory.

Re: ATE: failure to write to local dir [Re: Frank] #33408 18 Sep 20 08:48 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
crazy

Re: ATE: failure to write to local dir [Re: Frank] #33410 19 Sep 20 08:15 AM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
To avoid any doubts, add the users "all" with "full control" and, also, check the "Sharing" tab and confirm if there are any rules with chances to block any traffic (you don't necessarily need to share that specific folder, I believe it's under upper level precendences).
That's an "working folder" so, I believe it's not under very restrictif rules, although the reports go there but no one knows about that :-)
Good luck


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: ATE: failure to write to local dir [Re: Frank] #33420 21 Sep 20 08:40 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Ok - its a bit late for April Fools and too early for Halloween but there is something unholy happening on this station...

First as prescribed i made sure the %documents% directory was correct and it was.

Then i tried the VUE test, and it "seemed" to build a file in the APEX directory.. however windows had no history of it. So then i simplified the test and tried

.vue c:\fmc\jack.tst. I created a small file, and even re-vued it. However same problem, Windows has no history of this file on the local PC.. i even did a full PC search. (see attached as proof).

So as i poked around the file explorer i noticed that this station was at one time running our ashell for windows application (there are remnants of these files in other areas). They have since moved to our cloud options and running ATE. I verified that indeed the icon was running ATE and connecting to the linux server and not the older windows connection, but i have to wonder if perhaps there are some old registry entries that are confusing ATE environment variables.. but even still, how do you reconcile the simple VUE test.. i mean either the file is there or its not! Ashell sees it and i can't find it on the windows side...

At this point i might need an excorcist! crazy Seriously tho now i am completely lost in the ashell corn maze here... Jack we can perhaps establish a connection if you think it would help to poke around.. or let me know what next steps make sense.

TIA

Attached Files jack4.PNG
Re: ATE: failure to write to local dir [Re: Frank] #33421 21 Sep 20 09:41 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I feel like the new subtitle of this thread should be "When is the C: drive not the C: drive?" ... confused

Looking at your image, the only explanation I could come up with is that the VUE session is running in the Linux space on the server, while the Explorer window of course has to be the Windows client. Just to confirm that can vue c:\fmc\test.lst successfully under Linux, I did so, and now have this in my directory list on Linux ...
Code
.dir/lt/p
        1 Sep 21 16:30 c:\fmc\test.bak
        8 Sep 21 16:30 c:\fmc\test.lst
   148068 Sep 21 16:29 agedar.csv
    24743 Sep 21 16:29 invoal2.csv


So I have to ask: Are you SURE you launched the VUE session from a Local PC session (File > Open Local Session) ? (Note that the title bar of the window mentions "Cloud", making it look like a regular ATE connection to the server.)

An easy way to confirm this would be to use the PWD command at the dot prompt prior to the VUE test.

Unfortunately I think we're in the mode of debugging the debugging, but it would probably help relieve the vertigo to find some firm directory ground to stand on.

One other question: are the client PC's running ATE locally? Or are they connecting to some Windows server in the cloud and running ATE from there to your Linux machine? If the latter, maybe there is some legitimate room for confusion as to which C drive we're talking about.

Re: ATE: failure to write to local dir [Re: Frank] #33424 22 Sep 20 04:20 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Agreed - it is getting a bit off the rails..

Let's re-establish the ground rules:

ATE > Cloud Linux server. No RDP or other connectivity. Yes i was on the correct station. And i did a PWD and verified i was in the right church and right pew.

The original problem is with APEX not having access to the local /apex dir on the C drive. I was under the impression from your "vue" test that we could access this area, NOT the linux server. So i don't know what this test brings to the party.

How do i get vue to open a file on the LOCAL C drive of the PC? Or even write a simple test program to do so? I tried to open #1,"c:\fmc\test.dat",output and it creates a file on linux server not PC. Since linux use / and windows \ i thought ashell was smart enuf to detect where to place the file...

Re: ATE: failure to write to local dir [Re: Frank] #33427 22 Sep 20 06:51 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The only way to get VUE to open a file on the LOCAL C drive is to launch VUE from a LOCAL session on the PC, rather than from the ATE connection to the server. To do that, use File > Open Local Session (to create a new A-Shell/Windows session running locally on the PC), and then execute the VUE command from that dot prompt. That window will look suspiciously like the ATE window, so you may want to use the PWD command to verify that you really are operating within the PC environment, but it's also the case that while you have the local session open, the ATE window will be suspended.

It would be a nice trick for VUE.LIT running under A-Shell/Linux to recognize that the file you want to open looks like a PC filespec, and to then somehow redirect the operation back to the PC for execution, but that's a pretty tall order. Typically, if you want to be able to operate from system X on files that are resident on system Y, you have to do some kind of network mount of system Y's directory to make it visible to system X.

The point of the vue test was to convince ourselves that there wasn't some kind of vendetta against A-Shell preventing it from writing to the PC directory. We already know that Notepad can write to it, but we can't figure out why A-Shell can't write to it. I think it's because there's some confusion in the filespecs, or the context in which the filespecs are being evaluated, but I can't quite see just what the issue is. If we could at least establish that there is no problem with A-Shell/Windows running locally on the PC opening up a file on that directory, then we could eliminate the suspicion that the issue was related to privileges, and instead focus on the suspicion that it's just some kind of confusion of which system is which, i.e. which C drive we're talking about.

Re: ATE: failure to write to local dir [Re: Frank] #33430 22 Sep 20 07:07 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Thanks for the reply will try that...

(PS: Removed...)



Last edited by Frank; 22 Sep 20 08:42 PM. Reason: Thanks for heads up - I moved the post to the correct thread.
Re: ATE: failure to write to local dir [Re: Frank] #33434 23 Sep 20 04:12 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Ok i think we are peeling the layers of the onion.

Trying to Vue from ashell (ATE>Open local session) indeed there is some permission problem (see image)

So i tried parent folder of /documents and still no joy.

I was however able to access c:\users\arelis\jack.txt with no issue... so we have narrowed the problem to the documents folder. I checked permissions they seemed open.. also checked security to see if it had any restriction on ashell and didn't see any.. but i am not a windows expert by any measure.

So thoughts on what to look at next? Pass it back to their IT? Their pat answer is well i can see it in notepad so all is fine!

Attached Files BIC1.PNG
Re: ATE: failure to write to local dir [Re: Frank] #33436 23 Sep 20 04:39 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
That's a tough one. It does sort of appear that the system may be imposing different security rules on different executables. And that's certainly possible. My suspicion would be on some kind of extra-Windows security layer (like a third-party anti-virus). But in that case, you would absolutely need the help of whoever set it up and controls it. You might be able to get some insight to that by just going into the Windows Security panel to see what virus protection is present.

If it comes down to the old "works in Notepad so it must be a bug in your program" tactic, I guess the comeback would be "works in my application in every other directory, why not this one?".

And a some point you may ask yourself why fight this when you can work around it by creating a new APEX directory. Once you define the APEX environment variable on that PC, the reconfiguration will be a non-issue for your application, which doesn't really need to know or care where the APEX directory is. Or, if you prefer to handle it entirely from your application, you can use AG_SETENV to just define the APEX environment variable on the PC to point to any existing known directory.

Re: ATE: failure to write to local dir [Re: Frank] #33437 23 Sep 20 04:47 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Hey Jack -

I agree... when its 4th and forever, punting seems to be the logical option. I really wanted to see this thru however since its not the first time and probably won't be the last. I think ill punt this back to them for any resolution and if not, as you suggest just change the apex location.

Can you remind me how to do this? I don't want to add anything to the application since i really want this to be a single station solution.

Is this something i can just add to the miame.ini on this station's pc environment?

Re: ATE: failure to write to local dir [Re: Frank] #33439 23 Sep 20 05:35 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Just enter "Envir" in the system search bar, select Edit System Environment, then click on Environment Variables, and define a System variable APEX that equates to a directory you know exists and is writable. (You may want to just create an APEX directory under the ATE directory.) Under Windows 10, i think the effect is immediate (although it may be necessary to re-launch the ATE connection - I'm not sure about that.)

You can test it from the A-Shell/Linux dot prompt with the AGCMD ...
Code
.AGCMD GETENV APEX


Note that in the usual case, APEX is not defined as an environment variable. When you define it, ATE then uses that definition instead of the internal definition of \Documents\APEX.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3