Maybe in the program you could have the code:
shell "e:path attrib myfile.ext -r"
assuming that e: is what windows assigned to the memory stick and
where path is the file's path and myfile is the name of the file with the read-only attribute. -r means remove the read-only attribute.
---Anthony
[Non-text portions of this message have been removed]