mrgr8avill
Member
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!
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 Computer
System One
-
- Manufacturer/Model
- My own
- CPU
- Intel Q6600
- Motherboard
- Asus Maximus Extreme
- Memory
- 8GB DDR2-800
- Graphics card(s)
- ATI Radeon 3870
- Sound Card
- Onboard HDAD
- Monitor(s) Displays
- 24" horizontal LCD/ 24" vertical LCD
- Screen Resolution
- 19
- Hard Drives
- 4xWD Velociraptor (2x Raid 0) 4xSeagate 1TB
- PSU
- Corsair HX1000W
- Case
- Iceberg Liquid
- Cooling
- Thermaltake Bigwater 760is
- Mouse
- Microsoft wireless mouse/laser/ppt remote
- Keyboard
- Saitek Illuminated wired
- Internet Speed
- 2x15Mb cbl w/dual NICs/static routing (screw load balancing)
- Other Info
- Mid-level file processing machine; pre-45nm era.