I have a script that tries to read the file, but it can't. It returns ##NO FILE## when it tries to read it.
I created a small test script to see what the problem was and it's very strange:
I'm logged in as Administrator
The file exists and the path is right
The variable I'm using is defined correctly.
File sharing is with Everyone, full rights
But:
ReadLn can't find it.
GFL can't read the folder
but strangely enough, ExecuteFile> can run it.
Here's the script:
Code: Select all
Let>IGNOREERRORS=1
MouseMove>781,513
LClick
Wait>1
SetFocus>Administrator:
Wait>2
Send>Whoami
Wait>1
Press Enter
//MessageModal>look
Let>v_varfile=c:\ms15\chess\tempvar\test_file.txt
Let>v_txt_cnt=1
Let>v_txt_cnt=%v_txt_cnt%+1
ReadLn>v_varfile,v_rezult,v_text_info
MessageModal>%v_varfile% says %v_text_info%
GetFileList>c:\ms15\chess,v_res
MessageModal>v_res
ExecuteFile>%v_varfile%
https://app.vidjack.com/share/1944
I try to walk you through what I'm doing, but it helps to use the pause button so you can study the action.
Also, my other scripts can use ReadLn in this folder on other text files, no problem. I don't know what might be different, but if anybody can spot something, I'd be grateful.