• Saving to the Temporary Internet Files directory

    Home » Forums » AskWoody support » Windows » Windows – other » Saving to the Temporary Internet Files directory

    Author
    Topic
    #360762

    Windows 95

    I have designed an intranet Word form that runs a macro that e-mails the form when a command button is clicked. To preserve the data before mailing the form must be saved.

    I am saving (via the macro) to the temporary internet files folder on the basis that everybody has this folder that uses the intranet and also in the hope that Windows performs some kind of housekeeping on the folder – deleting old files now and again.

    This probably happens when the browser writes to the folder but will Windows delete files that are written to the folder but not by the browser?

    I am trying to make the whole process of e-mailing the form transparent to the user – I do not want them to have occasionally go into their hard-drive and detail loads of old forms.

    Has anybody any thoughts on this?

    Viewing 0 reply threads
    Author
    Replies
    • #545577

      Hi,

      Let me answer you as an application programmer. I don’t know VB, nor Word’s ‘form’ capabilities.

      I would assume that, if you can save to this folder, you can also delete a file from this folder after the e-mail has gone. Why not delete it programatically? Or maybe your problem is that you can’t be sure the e-mail has gone?

      My second point is that MS Windows maintains an environment variable pointing to the temporary folder. You may also find that there is a registry entry pointing to this. I would suggest you consider using this folder (mine is in c:windowstemp) instead of “c:windowsTemporary Internet Files” because it seems to be there for the exact purpose you have in mind.

      My third point is that many utilities offer a disc cleanup service and the three that I have on my machine all include c:windowstemp. The first utility is Norton System Works, the second is a nifty freebie called HDValet. Find it on http://www.zdnet.com using their Search feature. (The freebie was originally published in PC Magazine.) The third utility comes in Windows Me (and maybe in Windows 98 as well). Click on My Computer icon. Then Right mouse click on the c: drive and choose Properties and you will see the pie chart representing the used and unused space on the drive. Windows Me users will see a command button just below the pie chart labelled “Disk Cleanup…” This will, when clicked, offer to empty many of the folders, including Temprary Internet Files and the Temp folder as well.

      • #545664

        Hello John,

        Thanks for your reply but I have found that if I just have a line of code in the macro that just saves (ActiveDocument FileSave) as long as the doc is open in the browser the file will be saved to the Temporary Internet folder by default.

        The browser also seems to delete the file as soon as I exit Word in the browser.

        I shall certainly download HDValet.

        Many thanks,

        David Solomon

    Viewing 0 reply threads
    Reply To: Saving to the Temporary Internet Files directory

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: