p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB How-To (http://p2p.wrox.com/forumdisplay.php?f=78)
-   -   Scheduled Task Reading Registry (http://p2p.wrox.com/showthread.php?t=5809)

ritag November 5th, 2003 12:28 PM

Scheduled Task Reading Registry
 
Hi.

I have a VB 6.0 executable that constantly reads/updates some Registry settings. When I execute the program it works fine but when it's executed as a Scheduled Task the Registry settings aren't read/updated.

Any thoughts/suggestions would be greatly appreciated.

Rita

Yehuda November 5th, 2003 01:07 PM

Is the machine logged in when the task runs (I think you need to be logged in for the tasks to run). Also who is the task running under? Does that person have the necessary rights to read and edit the registry?

ritag November 5th, 2003 03:02 PM

Thanks Yehuda.
I finally figured out what was happening. You have to run a Scheduled Task as a User and I was changing the Registry settings as a User that was not the same as that running the Task. Once I logged on as the Scheduled Task User, I could see the changes I expected in the Registry, plus any changes I made to the Registry were correctly processed.
BTW, you don't need to be logged in as the User, it just uses the User's permissions/access rights.


All times are GMT -4. The time now is 12:39 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.