OK, hopefully someone can help me before my frustration mounts.
I have a simple task: open each file in a folder and use SaveAs to convert from DOCX to DOC. (Stop me here if you know of a better way!) Basically, I used the “ChDir” command to begin the routine, followed by the typical ‘do-while-dir “”‘ approach. The problem is, after I use the SaveAs command, the default folder changes to whatever my “File Locations” default is and the subsequent Dir fails to return the next pertinent file!
This is the first time I’m manipulating files like this in 2007. Is this “normal” behavior? Shouldn’t the ChDir command stick? More to the point, why does the SaveAs command change the current directory?? (It’s not a drive issue, since both the ChDir and the default file location are on my C:-drive.)
(BTW, I should note that I can certainly work around this phenomenon (by including the full path in the DIR command, etc.) but I’d nonetheless like to know if anyone knows of the rationale for the SaveAs command changing the current directory whenever it’s called.)