zskillz
12-01-2001, 04:44 AM
I want to write a program that changes my windows 98 wallpaper to a picture that I have saved in a specific directory evertime that I restart windows....
i know how to do it using a .vbs file if I actually hardcode the name of every file in the directory..... I guess that what I am asking for is a way to read and categorize, based on number (as in an array) all of the files in a specific directory.. then I would use the random number feature to generate a background....
my problem is knowing how to read all of the files in a specific directory into some sort of array so that I don't actually have to hardcode the filenames into the .vbs or the *.java file....
if anyone knows of a way to do this, please let me know
-Z
i know how to do it using a .vbs file if I actually hardcode the name of every file in the directory..... I guess that what I am asking for is a way to read and categorize, based on number (as in an array) all of the files in a specific directory.. then I would use the random number feature to generate a background....
my problem is knowing how to read all of the files in a specific directory into some sort of array so that I don't actually have to hardcode the filenames into the .vbs or the *.java file....
if anyone knows of a way to do this, please let me know
-Z