import
GCC
gccconsulting at comcast.net
Mon Jun 27 09:08:31 PDT 2005
Windows native 5.0.14
Win XP sp 1
I have a routine I am working on that:
1. Changes the directory using chdir
2. uses a system command to run a batch file which runs a program that creates a
list of 5 random "passwords" to a file called pass.txt
3. Use import to read in the pass file to a 5 element array and display the
results in a listbox for selecting one of the listed passwords.
So far, so good. All works as expected.
My problem, when I move to a new record and run the routine again, the same
group of passwords is displayed. If I exit IUA and the come back into a record
and run the routine, a new list is presented.
It appears that pass.txt is locked. How would I release this file?
I did try aa=remove("pass.txt") and tested aa. According to the help file, 0
means the file was removed and a negative number indicates the remove failed.
Does anyone know what a positive 1 indicates?
Richard Kreiss
GCC Consulting
More information about the Filepro-list
mailing list