Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Mar 2001
    Location
    St Georges du Bois, Pays de la Loire
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Saving to the Temporary Internet Files directory

    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?

  2. #2
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    The Hague, Netherlands
    Posts
    125
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Saving to the Temporary Internet Files directory

    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 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.

  3. #3
    Star Lounger
    Join Date
    Mar 2001
    Location
    St Georges du Bois, Pays de la Loire
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saving to the Temporary Internet Files directory

    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

  4. #4
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    The Hague, Netherlands
    Posts
    125
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Saving to the Temporary Internet Files directory

    Thanks for the info.

    Good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •