Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Network & Sharing

Vista - IE and Temp Folder issues

Reply
 
Old 09-07-2009   #1 (permalink)


Vista Ultimate x64
 
 

IE and Temp Folder issues

Hi -- thanks for taking the time to read this. I don't really even know how to title it properly. Please let me know if I am OT.

I am using a third-party IE automator to download a file I need (actually more than one, but save the cheerleader, save the world). The instance of IE runs in an interactive process created through task scheduler under an account with Admin privs on Win Server 2008 (web).

Everything works fine, except although the IE instance is running "under" the defined user account, the dialog box and default folder settings are different. So even though I change default download directories for the user account in the registry, the file can only be saved to a TEMP directory under c:\windows\temp\temporary internet files.

I know this to be an issue with the way Windows is setting up the instance of IE -- since I can run the automator "manually" from the user account and all is fine. This only opccurs when the automator is run "automatically" through task scheduler when the user is not logged on.

PROBLEM 1 (The best solution for me): I have no idea which "account" is utilized by the machine when IE is called using System.Diagnostics from a .NET program created by task scheduler under a user account that is not logged in. If I can figure that out, maybe I can change the registry settings for IE to indicate to default download directory I want. I have changed the registry values for Default Download and Default in IE for every user on the machine, but it doens't seem to work for whatever "account" windows is using.

PROBLEM 2 (If I can't solve problem 1): Not only can't you change the default folder, but you can't change the default file. So I wrote a watcher program to "yank" the default file (called full.csv) from any temp folder under C:\Windows\Temp\Temproary Internet Files as soon as it's spotted. Trouble here is permissions. If I can't solve Problem 1 above, then I would like to know how to un-hide or otherwise change permissions on the temp folders. I can (and have) modified permissions temporarily on the parent folders (TEMP) to FULL CONTROL for EVERYONE. These permissions aren't inherited by the temp folders (with names like ED5THSA) that Windows creates.

Solving Problem 2 still kinda sucks, because all incoming files default to the same name (full.csv) despite the fact that they have different contents. If a new file gets saved before my "watcher" gets to the older one, then I just missed a file because I have no control over naming or location.



Any help or insight would be appreciated!

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Windows Vista strange settings on temp folder AppData\Local\Temp\1 Vista security
TEMP FOLDER Vista General
Temp Folder Vista security
Where is my temp files folder, and my cookies folder?? Vista file management
temp folder? Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46