J
janiotjoeawie via AccessMonster.com
I've build a script that creates 2 xml files and write them both to the root
of the c drive.
My problem is now that after using this for a while I cannot write one of the
two xml files to the c drive. I get an error permission denied.
The second file is still writen to the same location.
My code is:
Set rs = CurrentDb().OpenRecordset("qry_xml_output")
Set fs = CreateObject("Scripting.FileSystemObject")
Set wf = fs.CreateTextFile("C:\WiCourse.xml", True)
. .
. .
. .
wf.Writeline ("</dataroot>")
wf.Close
The code for the second file is the same except for the file name.
There is no file with the same name at the same location.
Why is the first file not writing to the specified location?
of the c drive.
My problem is now that after using this for a while I cannot write one of the
two xml files to the c drive. I get an error permission denied.
The second file is still writen to the same location.
My code is:
Set rs = CurrentDb().OpenRecordset("qry_xml_output")
Set fs = CreateObject("Scripting.FileSystemObject")
Set wf = fs.CreateTextFile("C:\WiCourse.xml", True)
. .
. .
. .
wf.Writeline ("</dataroot>")
wf.Close
The code for the second file is the same except for the file name.
There is no file with the same name at the same location.
Why is the first file not writing to the specified location?