home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

need some creative ideas here...PLEASE HELP!!!

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2400
Discussions: 200,941, Posts: 2,379,268, Members: 246,304
Old December 1st, 2001, 05:38 AM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 881
Send a message via AIM to zskillz
need some creative ideas here...PLEASE HELP!!!

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

-Zp
zskillz is offline   Reply With Quote
Old December 1st, 2001, 03:04 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,385
How about when the application runs it looks for all the files then populates a Database on all of the files.
Also you could make a table with all of the directories in it, that way you dont have to hardcode it, if you want to add a directory just add it into the DB


If you're using VBS you could probably pretty easily setup a DB with Access...

You could then have the application return the highest index # of in the files table, and the app picks a random number sends it back to the DB for a request of the filename....

All you'd need is a table for the folders to look into, and a table for the filenames, to make it a bit more "normalized" you could have a folderId to link back to the folders table so you could just have the filename alone, and then prepend the folder structure to that filename retrieved from the folders table

Clear as mud?

Last edited by vass0922 : December 1st, 2001 at 03:06 PM.
vass0922 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2913)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Obama the Muslim (14)
Is the PSU I received dead? (11)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
screen resolution vs monitor size (0)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)


All times are GMT -4. The time now is 02:02 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28