1.

Solve : Mandatory Background?

Answer»

Hello GUYS,

At my company they just put a mandatory background into affect and i want to create a batch file to run everytime i log into the machine to replace the current wallpaper picture with one i want.

I got part of the batch file to work, but it does not run properly at startup.

this is what i got so far.

rename "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\wallpaper1.bmp" 3.bmp
copy "c:\wallpaper1.bmp" "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\wallpaper1.bmp"

I have to run the batch file and hit f5 for the new background to appear.

I would like the batch file to run properly at login and to REFRESH the background ( not sure if the refresh is POSSIBLE or not )

Thanks for you helpTo have this batch file run every time you start the computer you can create a shortcut to the batch file in the Program files/Startup folder.

Not sure if this will work but you could try adding: the "win" command. Maybe it would cause windows to refresh when it attempts to load windows. But other then that there is no method of doing a F5 or refresh that I'm aware of from a batch file.You may run into problems with the ren. After the first go-round 3.bmp will exist and your batch file will attempt to rename a file to one that already exists. Try USING a an exisitence test to delete 3.bmp before you do the rename.

Just my 2¢.



Discussion

No Comment Found