giantjoebot Posted September 2, 2007 Posted September 2, 2007 I remember there was an episode where they showed how to write a batch file that would de-frag your hard drive according to a schedule, and I'm looking to do something similar I run a dual monitor config with a nvidia 7900GS. The nview utility allows me to put different images on each desktop, I keep the second one black. I want to change just my main monitors desktop image automatically. I already tried a powertoy called desktop changer, but that didn't work. So I was thinking that it should be possible to write a Batch file that will copy from a list of images, rename it, and replace the image file that my desktop is set too on a schedule, such as each day of the week. Is this possible? If it is then I need a lot of help because I have never written a batch file in my life. Quote
K1u Posted September 2, 2007 Posted September 2, 2007 I remember there was an episode where they showed how to write a batch file that would de-frag your hard drive according to a schedule, and I'm looking to do something similar I run a dual monitor config with a nvidia 7900GS. The nview utility allows me to put different images on each desktop, I keep the second one black. I want to change just my main monitors desktop image automatically. I already tried a powertoy called desktop changer, but that didn't work. So I was thinking that it should be possible to write a Batch file that will replace the image file that my desktop is set too from a list of images on a schedule, such as each day of the week. Is this possible? If it is then I need a lot of help because I have never written a batch file in my life. Not to be a ass but I suggest learning batch scripting... that was a useless comment but hopefully it helps you. The location of your desktop background is in a registry string. Yes you can do this, you will need to learn registry editing and the sleep func. Quote
giantjoebot Posted September 2, 2007 Author Posted September 2, 2007 Its actually a lot simpler than that since I'm using nview to control the desktop background. All I have to do is make it so that the image gets replaced, but keeps the same file name and location. I just tried it this. I created a folder called image, and copied a image into it, and renamed it "image". I set the background to it. I then renamed another image and renamed it "image" and replaced the other one, and restarted. It worked, the desktop image changed after the restart. Hell I could create seven folders and have seven different images in them, and schedule them to be replaced each day of the week with task scheduler. Then all I need is a batch file that will replace and overwrite the image file that my desktop is set to. Even if it takes a restart to change the image, thats fine. Since I generally turn my computer off when I go to bed. Quote
K1u Posted September 2, 2007 Posted September 2, 2007 Its actually a lot simpler than that since I'm using nview to control the desktop background. All I have to do is make it so that the image gets replaced, but keeps the same file name and location. I just tried it this. I created a folder called image, and copied a image into it, and renamed it "image". I set the background to it. I then renamed another image and renamed it "image" and replaced the other one, and restarted. It worked, the desktop image changed after the restart. Hell I could create seven folders and have seven different images in them, and schedule them to be replaced each day of the week with task scheduler. Then all I need is a batch file that will replace and overwrite the image file that my desktop is set to. Even if it takes a restart to change the image, thats fine. Since I generally turn my computer off when I go to bed. Oh then simple copy locofnewfile locofoldfile /y Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.