GetTemporaryFolderItem

  1. 6 months ago

    Jeff T

    9 Mar 2019 Pre-Release Testers Midlands of England, Europe
    Dim f As FolderItem
    f = GetTemporaryFolderItem

    Doesn't specify a file extension.
    Can I immediately follow that call by changing the name of the file, and still create it in wherever TEMP happens to be?
    Im getting trouble from some virus checkers on Windows blocking/locking files while Im accessing them.

    GetTemporaryFolderItem is for when you don't care about what the name or location, you just need somewhere to write to the disk for a moment. For a little more control, use SpecialFolder.Temporary.Child to specify the file name yourself.

    But yes, you can rename the FolderItem returned by GetTemporaryFolderItem however you like.

  2. Thom M

    9 Mar 2019 Pre-Release Testers Answer Greater Hartford Area, CT

    GetTemporaryFolderItem is for when you don't care about what the name or location, you just need somewhere to write to the disk for a moment. For a little more control, use SpecialFolder.Temporary.Child to specify the file name yourself.

    But yes, you can rename the FolderItem returned by GetTemporaryFolderItem however you like.

or Sign Up to reply!