开发者

VB6 File Access on Windows 7

I installed an old VB6 app that I wrote on Windows 7. The app produces an HTML file and saves it to Program Files (x86)/{Application}/report.html.

I 开发者_JAVA百科then installed a newer version of that app on the same machine and ran the same report. But when I open the new generated report.html file, I see the OLD version of that file.

It seems like Windows is keeping the files that were generated from the OLD version of the app and not letting the NEW version of the app overwrite them.

The app is running under Windows XP SP2 compatability mode as an Administrator.

Are there any workarounds for this?


It's probably filesystem redirection at work. Writes to %PROGRAMFILES% get transparently redirected to a per-user location. If you run the app as an administrator, that should disable the redirection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜