Jump to content

Need help making batch file


giantjoebot
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...