Windows 98 question

A place to talk about anything (that doesn't belong in the other forums).

Moderator:Æron

User avatar
The J.A.M.
Posts:556
Joined:Wed Oct 22, 2003 1:43 am
Location:Somewhere in Mexico...
Contact:

Postby The J.A.M. » Sun Nov 14, 2004 2:13 am

[...unWARP!!!]<br><br>Good evening.<br><br><br>Is there a way to edit the win.ini file so that Windows chooses a random pic for the wallpaper on each startup? A while back I had a screen saver program that did that...never did figure out how...<br><br><br>Zacatepngolas!<br><br>Until next time, remember:<br><br>I<br><br>AM<br><br>THE<br><br>J.A.M.<br><br>Good evening.<br><br>[WARP!!!]

User avatar
dragonranpu
Posts:315
Joined:Wed Oct 13, 2004 7:47 am
Contact:

Postby dragonranpu » Sun Nov 14, 2004 2:17 am

Well concidering that 98 doesn't really use the WIn.ini file execpt for compatability purposes and that image is controled by the registry. So editing the win.ini file will not make is change the boot image. I do know that there are programs out there (one is called bootskins) that will change the image. I am not sure which key in ther registry controls the boot image though.<br><br>Now if you are looking for random walpaper for the desktop yoou should check out webshots. www.webshots.com<br><br>Jope this helps.
The Venerable<br>Dragon of Light<br><br>Dragon Friendship <br>By Bill Wescott <br>Copyright 2000© Bill Wescott All rights reserved<br><br>On wings of thunder<br>Honor bound<br>Search me out, I drum the sound<br>Twist and turn in the night<br>Dragon come, my guiding light.<br>Protector, guardian, friend not foe<br>Come to me, see my sigil glow.<br>Strong and true this friendship charm<br>I beckon thee, keep me from harm.<br>Around and about your magick swirls<br>Come to me, your wings unfurled.

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Sun Nov 14, 2004 6:52 pm

RjlsoFTWARe.com. I thiNK THEy have A PRogram LIKE that. I'm usinG THEiR keY LOCK chANGER proGRAm Right NOw.
pants jesus
DCS should've ended the comic a year or two ago.

User avatar
Tavis
Moderator (retired)
Posts:2866
Joined:Mon Oct 13, 2003 5:10 pm
Location:Pasadena, TX
Contact:

Postby Tavis » Sun Nov 14, 2004 7:48 pm

I'm pretty sure it wouldn't be too big a deal to construct a script in the Autoexec.bat file to say, copy a random file to the Windows folder as something like "desktop.bmp", and set Windows to use that image as the background. I don't remember what random number generator command you can use in batch if at all, but it seems likely there is one.

Softpaw
Posts:1348
Joined:Sun Oct 05, 2003 6:42 pm
Location:Washington, DC
Contact:

Postby Softpaw » Sun Nov 14, 2004 10:07 pm

AUTOEXEC.BAT runs before Windows loads, it'd have to be an on-bootup script using Windows Scripting Host. Not impossible, but people familiar with win scripting seem to be hard to find.<br><br>My recommendation is to get an old copy of Webshots (before they started charging money for images), which will automatically cycle at any interval as long as the tray icon is running.

Richard K Niner
Posts:4297
Joined:Wed Oct 20, 2004 5:08 pm
Location:On hiatus
Contact:

Postby Richard K Niner » Sun Nov 14, 2004 11:24 pm

The code described by Tavis would look as follows:<br><br><!--c1--> <table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->@echo off<br>set min=1<br>set max=256<br>:randomdesktop<br>set /a x=(%random% % %max%)+%min%<br>set x = %x%.bmp<br>if not exist %x% goto randomdesktop<br>if exist %WinDir%\desktop.bmp del %WinDir%\desktop.bmp<br>copy %x% %WinDir%\desktop.bmp<!--c2--></td></tr></table> <!--ec2--><br><br>This code requires that the desktop backgrounds are bmp files, and are located in the same folder as this script, and the files are numbered 1.bmp to 256.bmp - if they are numbered over any other range, the min and max variables should be altered to reflect that. Also, the desktop background would have to be set to C:\WINDOWS\desktop.bmp (where C is the drive that Windows is installed on).<br><br>Unfortunately, I have no way of checking whether the above code is valid in Windows 98. (I know it works in 2000 and XP).
<center>Image
K9U | Dog House | Av rotation</center>

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Sun Nov 14, 2004 11:37 pm

2000 and XP are just updated versions of MS's hack of OS/2 and windows 3.1-- I mean... they're based on NT, not DOS.
pants jesus
DCS should've ended the comic a year or two ago.

User avatar
Tavis
Moderator (retired)
Posts:2866
Joined:Mon Oct 13, 2003 5:10 pm
Location:Pasadena, TX
Contact:

Postby Tavis » Sun Nov 14, 2004 11:44 pm

K. Niner posted something very close to what I was suggesting. I was thinking more along the lines of keeping the filenames and listing them in the program, but I like the elegant nature of this solution.<br><br>I mean, Batch files are quite powerful little things when you know what you are doing. I was thinking either include code like that directly in autoexec.bat or in a batch file elsewhere. In the former case, I'd add another variable (using set on config.sys) to set the wallpaper directory, like %walldir%

Dr. Dos
Posts:1329
Joined:Fri Oct 31, 2003 11:14 pm
Location:Scabsboro
Contact:

Postby Dr. Dos » Mon Nov 15, 2004 12:08 am

Save yourself trouble get <a href='http://www.ivory.org/panorama.html' target='_blank'>Panorama 32</a>
Anami: Sex with a giant, black scorpion seems fun.

<SteveThePocket> Geez. I want more of this stuff now. Now I know how a horny guy on an imageboard feels.


Return to “Anything”

Who is online

Users browsing this forum: No registered users and 17 guests